Class SlashRequireGuildAttribute
- Namespace
- DSharpPlus.SlashCommands.Attributes
- Assembly
- DSharpPlus.SlashCommands.dll
Defines that this slash command is only usable within a guild.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class SlashRequireGuildAttribute : SlashCheckBaseAttribute
- Inheritance
-
SlashRequireGuildAttribute
Constructors
- SlashRequireGuildAttribute()
Defines that this command is only usable within a guild.
Methods
- ExecuteChecksAsync(InteractionContext)
Runs checks.