Skip to content

Misha-133/Discord.Net.Extensions.Interactions

Repository files navigation

Discord.Net.Extensions.Interactions

NuGet Discord

An extension that provides additional functionality to Discord.Net.Interactions package.

Installation

Features

Examples

Guild-only commands

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();

Support

Still have questions or want to request a feature? Contact me in Discord.Net discord server