Class SlashCommandGuildAttribute
Makes a method available as an guild only slash command.
Inherited Members
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetHashCode()
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.Match(System.Object)
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Color_Chan.Discord.Commands.Attributes
Assembly: Color-Chan.Discord.Commands.dll
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)]
public class SlashCommandGuildAttribute : Attribute
Constructors
| Improve this Doc View SourceSlashCommandGuildAttribute(UInt64)
Registers a methods as a guild only slash command for a specific guild.
Declaration
public SlashCommandGuildAttribute(ulong guildId)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | guildId | The id of the guild that will get access to the slash command. |
Properties
| Improve this Doc View SourceGuildId
The id of the guild that will get access to the slash command.
Declaration
public ulong GuildId { get; }
Property Value
Type | Description |
---|---|
System.UInt64 |