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
DiscordApplicationCommandThe command to edit permissions for.
permissions
IEnumerable<DiscordApplicationCommandPermission>The list of permissions to use.
Returns
- Task<DiscordGuildApplicationCommandPermissions>
The edited permissions.