Struct ChannelPermissions
Assembly: Discord.Net.Core.dll​
View Source​
public struct ChannelPermissions
Properties​
RawValue​
Gets a packed value representing all the permissions in this Discord.ChannelPermissions.
View Source​
public readonly ulong RawValue { get; }
CreateInstantInvite​
If true
, a user may create invites.
View Source​
public readonly bool CreateInstantInvite { get; }
ManageChannel​
If true
, a user may create, delete and modify this channel.
View Source​
public readonly bool ManageChannel { get; }
AddReactions​
If true
, a user may add reactions.
View Source​
public readonly bool AddReactions { get; }
ViewChannel​
If true
, a user may view channels.
View Source​
public readonly bool ViewChannel { get; }
SendMessages​
If true
, a user may send messages.
View Source​
public readonly bool SendMessages { get; }
SendTTSMessages​
If true
, a user may send text-to-speech messages.
View Source​
public readonly bool SendTTSMessages { get; }
ManageMessages​
If true
, a user may delete messages.
View Source​
public readonly bool ManageMessages { get; }
EmbedLinks​
If true
, Discord will auto-embed links sent by this user.
View Source​
public readonly bool EmbedLinks { get; }
AttachFiles​
If true
, a user may send files.
View Source​
public readonly bool AttachFiles { get; }
ReadMessageHistory​
If true
, a user may read previous messages.
View Source​
public readonly bool ReadMessageHistory { get; }
MentionEveryone​
If true
, a user may mention @everyone.
View Source​
public readonly bool MentionEveryone { get; }
UseExternalEmojis​
If true
, a user may use custom emoji from other guilds.
View Source​
public readonly bool UseExternalEmojis { get; }
Connect​
If true
, a user may connect to a voice channel.
View Source​
public readonly bool Connect { get; }
Speak​
If true
, a user may speak in a voice channel.
View Source​
public readonly bool Speak { get; }
MuteMembers​
If true
, a user may mute users.
View Source​
public readonly bool MuteMembers { get; }
DeafenMembers​
If true
, a user may deafen users.
View Source​
public readonly bool DeafenMembers { get; }
MoveMembers​
If true
, a user may move other users between voice channels.
View Source​
public readonly bool MoveMembers { get; }
UseVAD​
If true
, a user may use voice-activity-detection rather than push-to-talk.
View Source​
public readonly bool UseVAD { get; }
PrioritySpeaker​
If true
, a user may use priority speaker in a voice channel.
View Source​
public readonly bool PrioritySpeaker { get; }
Stream​
If true
, a user may stream video in a voice channel.
View Source​
public readonly bool Stream { get; }
ManageRoles​
If true
, a user may adjust role permissions. This also implicitly grants all other permissions.
View Source​
public readonly bool ManageRoles { get; }
ManageWebhooks​
If true
, a user may edit the webhooks for this channel.
View Source​
public readonly bool ManageWebhooks { get; }
UseApplicationCommands​
If true
, a user may use application commands in this guild.
View Source​
public readonly bool UseApplicationCommands { get; }
RequestToSpeak​
If true
, a user may request to speak in stage channels.
View Source​
public readonly bool RequestToSpeak { get; }
ManageThreads​
If true
, a user may manage threads in this guild.
View Source​
public readonly bool ManageThreads { get; }
CreatePublicThreads​
If true
, a user may create public threads in this guild.
View Source​
public readonly bool CreatePublicThreads { get; }
CreatePrivateThreads​
If true
, a user may create private threads in this guild.
View Source​
public readonly bool CreatePrivateThreads { get; }
UseExternalStickers​
If true
, a user may use external stickers in this guild.
View Source​
public readonly bool UseExternalStickers { get; }
SendMessagesInThreads​
If true
, a user may send messages in threads in this guild.
View Source​
public readonly bool SendMessagesInThreads { get; }
StartEmbeddedActivities​
If true
, a user launch application activities in voice channels in this guild.
View Source​
public readonly bool StartEmbeddedActivities { get; }
Fields​
None​
Gets a blank Discord.ChannelPermissions that grants no permissions.
View Source​
public static readonly ChannelPermissions None
Text​
Gets a Discord.ChannelPermissions that grants all permissions for text channels.
View Source​
public static readonly ChannelPermissions Text
Voice​
Gets a Discord.ChannelPermissions that grants all permissions for voice channels.
View Source​
public static readonly ChannelPermissions Voice
Stage​
Gets a Discord.ChannelPermissions that grants all permissions for stage channels.
View Source​
public static readonly ChannelPermissions Stage
Category​
Gets a Discord.ChannelPermissions that grants all permissions for category channels.
View Source​
public static readonly ChannelPermissions Category
DM​
Gets a Discord.ChannelPermissions that grants all permissions for direct message channels.
View Source​
public static readonly ChannelPermissions DM
Group​
Gets a Discord.ChannelPermissions that grants all permissions for group channels.
View Source​
public static readonly ChannelPermissions Group
Methods​
All(IChannel)​
Gets a Discord.ChannelPermissions that grants all permissions for a given channel type.
View Source​
public static ChannelPermissions All(IChannel channel)
Returns​
Parameters​
Type | Name |
---|---|
Discord.IChannel | channel |
Modify(Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>)​
Creates a new Discord.ChannelPermissions from this one, changing the provided non-null permissions.
View Source​
public ChannelPermissions Modify(bool? createInstantInvite = null, bool? manageChannel = null, bool? addReactions = null, bool? viewChannel = null, bool? sendMessages = null, bool? sendTTSMessages = null, bool? manageMessages = null, bool? embedLinks = null, bool? attachFiles = null, bool? readMessageHistory = null, bool? mentionEveryone = null, bool? useExternalEmojis = null, bool? connect = null, bool? speak = null, bool? muteMembers = null, bool? deafenMembers = null, bool? moveMembers = null, bool? useVoiceActivation = null, bool? prioritySpeaker = null, bool? stream = null, bool? manageRoles = null, bool? manageWebhooks = null, bool? useApplicationCommands = null, bool? requestToSpeak = null, bool? manageThreads = null, bool? createPublicThreads = null, bool? createPrivateThreads = null, bool? useExternalStickers = null, bool? sendMessagesInThreads = null, bool? startEmbeddedActivities = null)
Returns​
Parameters​
Type | Name |
---|---|
System.Nullable<System.Boolean> | createInstantInvite |
System.Nullable<System.Boolean> | manageChannel |
System.Nullable<System.Boolean> | addReactions |
System.Nullable<System.Boolean> | viewChannel |
System.Nullable<System.Boolean> | sendMessages |
System.Nullable<System.Boolean> | sendTTSMessages |
System.Nullable<System.Boolean> | manageMessages |
System.Nullable<System.Boolean> | embedLinks |
System.Nullable<System.Boolean> | attachFiles |
System.Nullable<System.Boolean> | readMessageHistory |
System.Nullable<System.Boolean> | mentionEveryone |
System.Nullable<System.Boolean> | useExternalEmojis |
System.Nullable<System.Boolean> | connect |
System.Nullable<System.Boolean> | speak |
System.Nullable<System.Boolean> | muteMembers |
System.Nullable<System.Boolean> | deafenMembers |
System.Nullable<System.Boolean> | moveMembers |
System.Nullable<System.Boolean> | useVoiceActivation |
System.Nullable<System.Boolean> | prioritySpeaker |
System.Nullable<System.Boolean> | stream |
System.Nullable<System.Boolean> | manageRoles |
System.Nullable<System.Boolean> | manageWebhooks |
System.Nullable<System.Boolean> | useApplicationCommands |
System.Nullable<System.Boolean> | requestToSpeak |
System.Nullable<System.Boolean> | manageThreads |
System.Nullable<System.Boolean> | createPublicThreads |
System.Nullable<System.Boolean> | createPrivateThreads |
System.Nullable<System.Boolean> | useExternalStickers |
System.Nullable<System.Boolean> | sendMessagesInThreads |
System.Nullable<System.Boolean> | startEmbeddedActivities |
Has(ChannelPermission)​
View Source​
public bool Has(ChannelPermission permission)
Returns​
System.Boolean
Parameters​
Type | Name |
---|---|
Discord.ChannelPermission | permission |
ToList()​
View Source​
public List<ChannelPermission> ToList()
Returns​
System.Collections.Generic.List<Discord.ChannelPermission>
ToString()​
View Source​
public override string ToString()
Returns​
System.String