Class DiscordGuildApplicationCommandPermissions
Represents a discord Guild Application Command Permissions Structure API model. Docs: https://discord.com/developers/docs/interactions/slash-commands#application-command-permissions-object-guild-application-command-permissions-structure
Inheritance
System.Object
DiscordGuildApplicationCommandPermissions
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Color_Chan.Discord.Rest.Models.Guild
Assembly: Color-Chan.Discord.Rest.dll
Syntax
public class DiscordGuildApplicationCommandPermissions : IDiscordGuildApplicationCommandPermissions
Constructors
| Improve this Doc View SourceDiscordGuildApplicationCommandPermissions(DiscordGuildApplicationCommandPermissionsData)
Initializes a new DiscordGuildApplicationCommandPermissions
Declaration
public DiscordGuildApplicationCommandPermissions(DiscordGuildApplicationCommandPermissionsData data)
Parameters
Type | Name | Description |
---|---|---|
DiscordGuildApplicationCommandPermissionsData | data | The data needed to create the DiscordGuildApplicationCommandPermissions. |
Properties
| Improve this Doc View SourceApplicationId
The id of the application the command belongs to.
Declaration
public ulong ApplicationId { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
CommandId
Unique id of the command.
Declaration
public ulong CommandId { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
GuildId
The id of the guild.
Declaration
public ulong GuildId { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
Permissions
The permissions for the command in the guild.
Declaration
public IEnumerable<IDiscordApplicationCommandPermissions> Permissions { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IDiscordApplicationCommandPermissions> |