Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.39 KB

File metadata and controls

37 lines (29 loc) · 1.39 KB

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