Table of Contents

Constructor DiscordPermissions

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

DiscordPermissions(DiscordPermission)

Creates a new instance of this type from exactly the specified permission.

public DiscordPermissions(DiscordPermission permission)

Parameters

permission DiscordPermission

DiscordPermissions(params ReadOnlySpan<DiscordPermission>)

Creates a new instance of this type from the specified permissions.

public DiscordPermissions(params ReadOnlySpan<DiscordPermission> permissions)

Parameters

permissions ReadOnlySpan<DiscordPermission>

DiscordPermissions(params IReadOnlyList<DiscordPermission>)

Creates a new instance of this type from the specified permissions.

public DiscordPermissions(params IReadOnlyList<DiscordPermission> permissions)

Parameters

permissions IReadOnlyList<DiscordPermission>

DiscordPermissions(BigInteger)

Creates a new instance of this type from the specified big integer. This assumes that the data is unsigned.

public DiscordPermissions(BigInteger permissionSet)

Parameters

permissionSet BigInteger

DiscordPermissions(scoped ReadOnlySpan<byte>)

Creates a new instance of this type from the specified raw data. This assumes that the data is unsigned.

public DiscordPermissions(scoped ReadOnlySpan<byte> raw)

Parameters

raw ReadOnlySpan<byte>