Table of Contents

Method Remove

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

Remove(DiscordPermission)

Removes a permission from this permission set.

public DiscordPermissions Remove(DiscordPermission permission)

Parameters

permission DiscordPermission

The permission field to remove.

Returns

DiscordPermissions

A new permission set containing all previous permissions except the specified permission.

Remove(params ReadOnlySpan<DiscordPermission>)

Removes multiple permission from this permission set.

public DiscordPermissions Remove(params ReadOnlySpan<DiscordPermission> permissions)

Parameters

permissions ReadOnlySpan<DiscordPermission>

The permission fields to remove.

Returns

DiscordPermissions

A new permission set containing all previous permissions except the specified permissions.