Table of Contents

Operator operator &

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

operator &(DiscordPermissions, DiscordPermission)

Returns a permission set containing either no value if the flag was not found, or exactly the specified flag if it was.

public static DiscordPermissions operator &(DiscordPermissions value, DiscordPermission flag)

Parameters

value DiscordPermissions
flag DiscordPermission

Returns

DiscordPermissions

operator &(DiscordPermissions, DiscordPermissions)

Performs a bitwise AND between the two permission sets.

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

Parameters

left DiscordPermissions
right DiscordPermissions

Returns

DiscordPermissions