#[repr(u64)]
pub enum ChannelPermission {
Show 31 variants ManageChannel, ManageServer, ManagePermissions, ManageRole, ManageCustomisation, KickMembers, BanMembers, TimeoutMembers, AssignRoles, ChangeNickname, ManageNicknames, ChangeAvatar, RemoveAvatars, ViewChannel, ReadMessageHistory, SendMessage, ManageMessages, ManageWebhooks, InviteOthers, SendEmbeds, UploadFiles, Masquerade, React, Connect, Speak, Video, MuteMembers, DeafenMembers, MoveMembers, GrantAllSafe, GrantAll,
}
Expand description

Permission value on Revolt

This should be restricted to the lower 52 bits to prevent any potential issues with Javascript. Also leave empty spaces for future permission flags to be added.

Variants§

§

ManageChannel

Manage the channel or channels on the server

§

ManageServer

Manage the server

§

ManagePermissions

Manage permissions on servers or channels

§

ManageRole

Manage roles on server

§

ManageCustomisation

Manage server customisation (includes emoji)

§

KickMembers

Kick other members below their ranking

§

BanMembers

Ban other members below their ranking

§

TimeoutMembers

Timeout other members below their ranking

§

AssignRoles

Assign roles to members below their ranking

§

ChangeNickname

Change own nickname

§

ManageNicknames

Change or remove other’s nicknames below their ranking

§

ChangeAvatar

Change own avatar

§

RemoveAvatars

Remove other’s avatars below their ranking

§

ViewChannel

View a channel

§

ReadMessageHistory

Read a channel’s past message history

§

SendMessage

Send a message in a channel

§

ManageMessages

Delete messages in a channel

§

ManageWebhooks

Manage webhook entries on a channel

§

InviteOthers

Create invites to this channel

§

SendEmbeds

Send embedded content in this channel

§

UploadFiles

Send attachments and media in this channel

§

Masquerade

Masquerade messages using custom nickname and avatar

§

React

React to messages with emojis

§

Connect

Connect to a voice channel

§

Speak

Speak in a voice call

§

Video

Share video in a voice call

§

MuteMembers

Mute other members with lower ranking in a voice call

§

DeafenMembers

Deafen other members with lower ranking in a voice call

§

MoveMembers

Move members between voice channels

§

GrantAllSafe

Safely grant all permissions

§

GrantAll

Grant all permissions

Trait Implementations§

source§

impl Add<&ChannelPermission> for &ChannelPermission

§

type Output = u64

The resulting type after applying the + operator.
source§

fn add(self, rhs: &ChannelPermission) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&ChannelPermission> for &u64

§

type Output = u64

The resulting type after applying the + operator.
source§

fn add(self, rhs: &ChannelPermission) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&ChannelPermission> for ChannelPermission

§

type Output = u64

The resulting type after applying the + operator.
source§

fn add(self, rhs: &ChannelPermission) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&ChannelPermission> for u64

§

type Output = u64

The resulting type after applying the + operator.
source§

fn add(self, rhs: &ChannelPermission) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&u64> for &ChannelPermission

§

type Output = u64

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&u64> for ChannelPermission

§

type Output = u64

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<ChannelPermission> for &ChannelPermission

§

type Output = u64

The resulting type after applying the + operator.
source§

fn add(self, rhs: ChannelPermission) -> Self::Output

Performs the + operation. Read more
source§

impl Add<ChannelPermission> for &u64

§

type Output = u64

The resulting type after applying the + operator.
source§

fn add(self, rhs: ChannelPermission) -> Self::Output

Performs the + operation. Read more
source§

impl Add<ChannelPermission> for ChannelPermission

§

type Output = u64

The resulting type after applying the + operator.
source§

fn add(self, rhs: ChannelPermission) -> Self::Output

Performs the + operation. Read more
source§

impl Add<ChannelPermission> for u64

§

type Output = u64

The resulting type after applying the + operator.
source§

fn add(self, rhs: ChannelPermission) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u64> for &ChannelPermission

§

type Output = u64

The resulting type after applying the + operator.
source§

fn add(self, rhs: u64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u64> for ChannelPermission

§

type Output = u64

The resulting type after applying the + operator.
source§

fn add(self, rhs: u64) -> Self::Output

Performs the + operation. Read more
source§

impl Clone for ChannelPermission

source§

fn clone(&self) -> ChannelPermission

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ChannelPermission

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<ChannelPermission> for PermissionValue

source§

fn from(v: ChannelPermission) -> Self

Converts to this type from the input type.
source§

impl PartialEq<ChannelPermission> for ChannelPermission

source§

fn eq(&self, other: &ChannelPermission) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for ChannelPermission

source§

impl Eq for ChannelPermission

source§

impl StructuralEq for ChannelPermission

source§

impl StructuralPartialEq for ChannelPermission

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.