Method Add
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
Add(DiscordPermission)
Adds a permission to this permission set.
public DiscordPermissions Add(DiscordPermission permission)
Parameters
permission
DiscordPermissionThe permission field to add.
Returns
- DiscordPermissions
A new permission set containing all previous permissions along with the new permission.
Add(params ReadOnlySpan<DiscordPermission>)
Adds multiple permissions to this permission set.
public DiscordPermissions Add(params ReadOnlySpan<DiscordPermission> permissions)
Parameters
permissions
ReadOnlySpan<DiscordPermission>The permission fields to add.
Returns
- DiscordPermissions
A new permission set containing all previous permissions along with the new permissions.