Browse Source

Fix InteractionContext.Guild (#2014)

* fix InteractionContext.Guild

* remove user parameter from InteractionContext ctor
tags/3.2.0
Cenk Ergen GitHub 3 years ago
parent
commit
944a0def97
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/Discord.Net.Interactions/InteractionContext.cs

+ 3
- 3
src/Discord.Net.Interactions/InteractionContext.cs View File

@@ -21,13 +21,13 @@ namespace Discord.Interactions
/// <param name="interaction">The underlying interaction.</param>
/// <param name="user"><see cref="IUser"/> who executed the command.</param>
/// <param name="channel"><see cref="ISocketMessageChannel"/> the command originated from.</param>
public InteractionContext(IDiscordClient client, IDiscordInteraction interaction, IUser user, IMessageChannel channel = null)
public InteractionContext(IDiscordClient client, IDiscordInteraction interaction, IMessageChannel channel = null)
{
Client = client;
Interaction = interaction;
Channel = channel;
Guild = (interaction as IGuildUser)?.Guild;
User = user;
Guild = (interaction.User as IGuildUser)?.Guild;
User = interaction.User;
Interaction = interaction;
}
}


Loading…
Cancel
Save