Table of Contents

Method EditApplicationCommandPermissionsAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.Rest.dll

EditApplicationCommandPermissionsAsync(ulong, ulong, IEnumerable<DiscordApplicationCommandPermission>)

Edits permissions for a application command in a guild.

public Task<DiscordGuildApplicationCommandPermissions> EditApplicationCommandPermissionsAsync(ulong guildId, ulong commandId, IEnumerable<DiscordApplicationCommandPermission> permissions)

Parameters

guildId ulong

The guild ID.

commandId ulong

The ID of the command to edit permissions for.

permissions IEnumerable<DiscordApplicationCommandPermission>

The list of permissions to use.

Returns

Task<DiscordGuildApplicationCommandPermissions>

The edited permissions.