Table of Contents

Method EditApplicationCommandPermissionsAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

EditApplicationCommandPermissionsAsync(DiscordApplicationCommand, IEnumerable<DiscordApplicationCommandPermission>)

Edits permissions for a application command in this guild.

public Task<DiscordGuildApplicationCommandPermissions> EditApplicationCommandPermissionsAsync(DiscordApplicationCommand command, IEnumerable<DiscordApplicationCommandPermission> permissions)

Parameters

command DiscordApplicationCommand

The command to edit permissions for.

permissions IEnumerable<DiscordApplicationCommandPermission>

The list of permissions to use.

Returns

Task<DiscordGuildApplicationCommandPermissions>

The edited permissions.