Table of Contents

Class SlashRequireOwnerAttribute

Namespace
DSharpPlus.SlashCommands.Attributes
Assembly
DSharpPlus.SlashCommands.dll

Defines that this slash command is restricted to the owner of the bot.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class SlashRequireOwnerAttribute : SlashCheckBaseAttribute
Inheritance
object
Attribute
SlashRequireOwnerAttribute

Constructors

SlashRequireOwnerAttribute()

Defines that this slash command is restricted to the owner of the bot.

Methods

ExecuteChecksAsync(InteractionContext)

Runs checks.