Table of Contents

Operator operator -

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

operator -(DiscordPermissions, DiscordPermission)

Removes the specified permission from a permission set.

public static DiscordPermissions operator -(DiscordPermissions value, DiscordPermission remove)

Parameters

value DiscordPermissions
remove DiscordPermission

Returns

DiscordPermissions

operator -(DiscordPermissions, DiscordPermissions)

Removes all permissions specified in the right-hand set from the left-hand set and returns the new permission set.

public static DiscordPermissions operator -(DiscordPermissions left, DiscordPermissions right)

Parameters

left DiscordPermissions
right DiscordPermissions

Returns

DiscordPermissions