An extension that provides additional functionality to Discord.Net.Interactions package.
Commands modules that inherit from InteractionModuleBase
can be marked with a [GuildModule]
attribute to register them only to guilds with provided ids, while all other modules will be registered globally.
[GuildModule(123456, 69696969, 1337)]
public class ExampleModule : InteractionModuleBase<SocketInteractionContext>
{
}
interactionServiceRegisterCommandsAsync
extension method has to be used to register commands.
await interactionService.RegisterCommandsAsync();
Still have questions or want to request a feature? Contact me in Discord.Net discord server