Class RequireOwnerOrIdAttribute
- Namespace
- DisCatSharp.CommandsNext.Attributes
- Assembly
- DisCatSharp.CommandsNext.dll
Requires ownership of the bot or a whitelisted id to execute this command.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, Inherited = false)]
public sealed class RequireOwnerOrIdAttribute : CheckBaseAttribute
- Inheritance
-
RequireOwnerOrIdAttribute
- Inherited Members
Constructors
- RequireOwnerOrIdAttribute(params ulong[])
Defines that usage of this command is restricted to the owner or whitelisted ids of the bot.
Properties
- UserIds
Allowed user ids
Methods
- ExecuteCheckAsync(CommandContext, bool)
Executes the a check.