Method BatchEditApplicationCommandPermissionsAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.Rest.dll
BatchEditApplicationCommandPermissionsAsync(ulong, IEnumerable<DiscordGuildApplicationCommandPermissions>)
Batch edits permissions for a application command in a guild.
public Task<IReadOnlyList<DiscordGuildApplicationCommandPermissions>> BatchEditApplicationCommandPermissionsAsync(ulong guildId, IEnumerable<DiscordGuildApplicationCommandPermissions> permissions)
Parameters
guildId
ulongThe guild ID.
permissions
IEnumerable<DiscordGuildApplicationCommandPermissions>The list of permissions to use.
Returns
- Task<IReadOnlyList<DiscordGuildApplicationCommandPermissions>>
A list of edited permissions.