Table of Contents

Method Add

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

Add(DiscordPermission)

Adds a permission to this permission set.

public DiscordPermissions Add(DiscordPermission permission)

Parameters

permission DiscordPermission

The 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.