Table of Contents

Method Toggle

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

Toggle(DiscordPermission)

Toggles the specified permission between states.

public DiscordPermissions Toggle(DiscordPermission permission)

Parameters

permission DiscordPermission

Returns

DiscordPermissions

Toggle(params ReadOnlySpan<DiscordPermission>)

Toggles all of the specified permissions between states.

public DiscordPermissions Toggle(params ReadOnlySpan<DiscordPermission> permissions)

Parameters

permissions ReadOnlySpan<DiscordPermission>

Returns

DiscordPermissions