Class ApplicationCommandGuildPermissionProperties
public class ApplicationCommandGuildPermissionProperties
- Inheritance
-
ApplicationCommandGuildPermissionProperties
- Inherited Members
Constructors
ApplicationCommandGuildPermissionProperties(ulong, ApplicationCommandGuildPermissionType, bool)
public ApplicationCommandGuildPermissionProperties(ulong id, ApplicationCommandGuildPermissionType type, bool permission)
Parameters
id
ulongID of the role, user, or channel the permission is for. 'GuildId - 1' for all channels.
type
ApplicationCommandGuildPermissionTypeType of the permission.
permission
bool
Properties
Id
ID of the role, user, or channel the permission is for. 'GuildId - 1' for all channels.
[JsonPropertyName("id")]
public ulong Id { get; set; }
Property Value
Permission
[JsonPropertyName("permission")]
public bool Permission { get; set; }
Property Value
Type
Type of the permission.
[JsonPropertyName("type")]
public ApplicationCommandGuildPermissionType Type { get; set; }
Property Value
Methods
WithId(ulong)
ID of the role, user, or channel the permission is for. 'GuildId - 1' for all channels.
public ApplicationCommandGuildPermissionProperties WithId(ulong id)
Parameters
id
ulong
Returns
WithPermission(bool)
public ApplicationCommandGuildPermissionProperties WithPermission(bool permission = true)
Parameters
permission
bool
Returns
WithType(ApplicationCommandGuildPermissionType)
Type of the permission.
public ApplicationCommandGuildPermissionProperties WithType(ApplicationCommandGuildPermissionType type)