Add a sample for getting the Guild from an IMessage
some users were having trouble with this
This commit is contained in:
4
docs/guides/samples/faq/guild_from_message.cs
Normal file
4
docs/guides/samples/faq/guild_from_message.cs
Normal file
@@ -0,0 +1,4 @@
|
||||
public async Task MessageReceived(IMessage msg)
|
||||
{
|
||||
var guild = (msg.Channel as IGuildChannel)?.Guild;
|
||||
}
|
||||
Reference in New Issue
Block a user