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