-
-
Notifications
You must be signed in to change notification settings - Fork 740
Closed
Labels
Description
The constructor is defined as...
public InteractionContext(IDiscordClient client, IDiscordInteraction interaction, IUser user, IMessageChannel channel = null)
{
Client = client;
Interaction = interaction;
Channel = channel;
Guild = (interaction as IGuildUser)?.Guild;
User = user;
Interaction = interaction;
}
No implementations of IDiscordInteraction also inherit IGuildUser, so Guild is always coalesced to null.