Skip to main content
Total Downloads
3.7K
3,714
Published
Jul 8, 2023
3y ago

Get Started

dotnet add package Discord.Net.Extensions.Interactions --version 1.1.0
ProductVersions
.NET
net6.0

README

Discord.Net.Extensions.Interactions

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

Downloads by Version

Depended On By

Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.