PermissionType class

Describes capabilities of a user vis-a-vis a channel

Constructors

PermissionType()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

connectEvents → const String
Capability required to receive connect events in the channel
deleteAnyMessage → const String
User has ability to delete any message in the channel User has DeleteMessage permission which applies to any message in the channel
deleteChannel → const String
Capability required to delete channel User has DeleteChannel permission
deleteOwnMessage → const String
User has ability to delete their own message in the channel User has DeleteMessage permission which applies only to owned messages
flagMessage → const String
Capability required to flag a message in a channel
freezeChannel → const String
Capability to freeze a channel User has UpdateChannelFrozen permission. The name implies freezing, but unfreezing is also allowed when this capability is present
leaveChannel → const String
User has RemoveOwnChannelMembership or UpdateChannelMembers permission
muteChannel → const String
User can mute channel
pinMessage → const String
Capability required to pin a message in a channel Corresponds to PinMessage permission
quoteMessage → const String
Capability required to quote a message in a channel
readEvents → const String
Ability to receive read events
searchMessages → const String
User can search for message in a channel Search feature is enabled (it will also have permission check in the future)
Capability required to send links in a channel send-message + user has AddLinks permission
sendMessage → const String
Capability required to send a message in the channel Channel is not frozen (or user has UseFrozenChannel permission) and user has CreateMessage permission.
sendReaction → const String
Capability required to send a message Reactions are enabled for the channel, channel is not frozen (or user has UseFrozenChannel permission) and user has CreateReaction permission
sendReply → const String
Capability required to send thread reply send-message + channel has replies enabled
sendTypingEvents → const String
Capability required to send typing events in a channel (Typing events are enabled)
setChannelCooldown → const String
User has UpdateChannelCooldown permission. Allows to enable/disable slow mode in the channel
updateAnyMessage → const String
User has ability to update/edit any message in the channel User has UpdateMessage permission which applies to any message in the channel
updateChannel → const String
Capability required update/edit channel info User has UpdateChannel permission
updateChannelMembers → const String
Capability required to update/edit channel members Channel is not distinct and user has UpdateChannelMembers permission
updateOwnMessage → const String
User has ability to update/edit their own message in the channel User has UpdateMessage permission which applies only to owned messages
uploadFile → const String
Capability required to upload a file in a channel Uploads are enabled and user has UploadAttachment