Table of Contents

Class GuildApplicationCommandPermissionsProperties

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

Constructors

GuildApplicationCommandPermissionsProperties(ulong, IEnumerable<ApplicationCommandGuildPermissionProperties>)

public GuildApplicationCommandPermissionsProperties(ulong commandId, IEnumerable<ApplicationCommandGuildPermissionProperties> permissions)

Parameters

commandId ulong
permissions IEnumerable<ApplicationCommandGuildPermissionProperties>

Properties

CommandId

[JsonPropertyName("id")]
public ulong CommandId { get; set; }

Property Value

ulong

Permissions

[JsonPropertyName("permissions")]
public IEnumerable<ApplicationCommandGuildPermissionProperties> Permissions { get; set; }

Property Value

IEnumerable<ApplicationCommandGuildPermissionProperties>

Methods

AddPermissions(params ApplicationCommandGuildPermissionProperties[])

public GuildApplicationCommandPermissionsProperties AddPermissions(params ApplicationCommandGuildPermissionProperties[] permissions)

Parameters

permissions ApplicationCommandGuildPermissionProperties[]

Returns

GuildApplicationCommandPermissionsProperties

AddPermissions(IEnumerable<ApplicationCommandGuildPermissionProperties>)

public GuildApplicationCommandPermissionsProperties AddPermissions(IEnumerable<ApplicationCommandGuildPermissionProperties> permissions)

Parameters

permissions IEnumerable<ApplicationCommandGuildPermissionProperties>

Returns

GuildApplicationCommandPermissionsProperties

WithCommandId(ulong)

public GuildApplicationCommandPermissionsProperties WithCommandId(ulong commandId)

Parameters

commandId ulong

Returns

GuildApplicationCommandPermissionsProperties

WithPermissions(IEnumerable<ApplicationCommandGuildPermissionProperties>)

public GuildApplicationCommandPermissionsProperties WithPermissions(IEnumerable<ApplicationCommandGuildPermissionProperties> permissions)

Parameters

permissions IEnumerable<ApplicationCommandGuildPermissionProperties>

Returns

GuildApplicationCommandPermissionsProperties