Table of Contents

Class ApplicationCommandGuildPermissionProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class ApplicationCommandGuildPermissionProperties
Inheritance
ApplicationCommandGuildPermissionProperties
Inherited Members

Constructors

ApplicationCommandGuildPermissionProperties(ulong, ApplicationCommandGuildPermissionType, bool)

public ApplicationCommandGuildPermissionProperties(ulong id, ApplicationCommandGuildPermissionType type, bool permission)

Parameters

id ulong

ID of the role, user, or channel the permission is for. 'GuildId - 1' for all channels.

type ApplicationCommandGuildPermissionType

Type of the permission.

permission bool

true to allow, false, to disallow.

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

ulong

Permission

true to allow, false, to disallow.

[JsonPropertyName("permission")]
public bool Permission { get; set; }

Property Value

bool

Type

Type of the permission.

[JsonPropertyName("type")]
public ApplicationCommandGuildPermissionType Type { get; set; }

Property Value

ApplicationCommandGuildPermissionType

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

ApplicationCommandGuildPermissionProperties

WithPermission(bool)

true to allow, false, to disallow.

public ApplicationCommandGuildPermissionProperties WithPermission(bool permission = true)

Parameters

permission bool

Returns

ApplicationCommandGuildPermissionProperties

WithType(ApplicationCommandGuildPermissionType)

Type of the permission.

public ApplicationCommandGuildPermissionProperties WithType(ApplicationCommandGuildPermissionType type)

Parameters

type ApplicationCommandGuildPermissionType

Returns

ApplicationCommandGuildPermissionProperties