Struct ChannelPermissions
Assembly: Discord.Net.Core.dll
Syntax
public struct ChannelPermissions
Constructors
|
Improve this Doc
View Source
ChannelPermissions(Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)
Declaration
public ChannelPermissions(bool createInstantInvite = false, bool manageChannel = false, bool addReactions = false, bool viewChannel = false, bool sendMessages = false, bool sendTTSMessages = false, bool manageMessages = false, bool embedLinks = false, bool attachFiles = false, bool readMessageHistory = false, bool mentionEveryone = false, bool useExternalEmojis = false, bool connect = false, bool speak = false, bool muteMembers = false, bool deafenMembers = false, bool moveMembers = false, bool useVoiceActivation = false, bool prioritySpeaker = false, bool stream = false, bool manageRoles = false, bool manageWebhooks = false, bool useApplicationCommands = false, bool requestToSpeak = false, bool manageThreads = false, bool createPublicThreads = false, bool createPrivateThreads = false, bool useExternalStickers = false, bool sendMessagesInThreads = false, bool startEmbeddedActivities = false, bool useSoundboard = false, bool createEvents = false, bool sendVoiceMessages = false, bool useClydeAI = false, bool setVoiceChannelStatus = false)
Parameters
|
Improve this Doc
View Source
ChannelPermissions(UInt64)
Declaration
public ChannelPermissions(ulong rawValue)
Parameters
Type |
Name |
Description |
UInt64 |
rawValue |
|
Fields
|
Improve this Doc
View Source
Category
Declaration
public static readonly ChannelPermissions Category
Field Value
|
Improve this Doc
View Source
DM
Declaration
public static readonly ChannelPermissions DM
Field Value
|
Improve this Doc
View Source
Forum
Declaration
public static readonly ChannelPermissions Forum
Field Value
|
Improve this Doc
View Source
Group
Declaration
public static readonly ChannelPermissions Group
Field Value
|
Improve this Doc
View Source
Declaration
public static readonly ChannelPermissions Media
Field Value
|
Improve this Doc
View Source
None
Declaration
public static readonly ChannelPermissions None
Field Value
|
Improve this Doc
View Source
Stage
Declaration
public static readonly ChannelPermissions Stage
Field Value
|
Improve this Doc
View Source
Text
Declaration
public static readonly ChannelPermissions Text
Field Value
|
Improve this Doc
View Source
Voice
Declaration
public static readonly ChannelPermissions Voice
Field Value
Properties
|
Improve this Doc
View Source
AddReactions
If true, a user may add reactions.
Declaration
public readonly bool AddReactions { get; }
Property Value
|
Improve this Doc
View Source
AttachFiles
If true, a user may send files.
Declaration
public readonly bool AttachFiles { get; }
Property Value
|
Improve this Doc
View Source
Connect
If true, a user may connect to a voice channel.
Declaration
public readonly bool Connect { get; }
Property Value
|
Improve this Doc
View Source
CreateEvents
If true, a user can edit and cancel events in this channel.
Declaration
public readonly bool CreateEvents { get; }
Property Value
|
Improve this Doc
View Source
CreateInstantInvite
If true, a user may create invites.
Declaration
public readonly bool CreateInstantInvite { get; }
Property Value
|
Improve this Doc
View Source
CreatePrivateThreads
If true, a user may create private threads in this guild.
Declaration
public readonly bool CreatePrivateThreads { get; }
Property Value
|
Improve this Doc
View Source
CreatePublicThreads
If true, a user may create public threads in this guild.
Declaration
public readonly bool CreatePublicThreads { get; }
Property Value
|
Improve this Doc
View Source
DeafenMembers
If true, a user may deafen users.
Declaration
public readonly bool DeafenMembers { get; }
Property Value
|
Improve this Doc
View Source
EmbedLinks
If true, Discord will auto-embed links sent by this user.
Declaration
public readonly bool EmbedLinks { get; }
Property Value
|
Improve this Doc
View Source
ManageChannel
If true, a user may create, delete and modify this channel.
Declaration
public readonly bool ManageChannel { get; }
Property Value
|
Improve this Doc
View Source
ManageMessages
If true, a user may delete messages.
Declaration
public readonly bool ManageMessages { get; }
Property Value
|
Improve this Doc
View Source
ManageRoles
If true, a user may adjust role permissions. This also implicitly grants all other permissions.
Declaration
public readonly bool ManageRoles { get; }
Property Value
|
Improve this Doc
View Source
ManageThreads
If true, a user may manage threads in this guild.
Declaration
public readonly bool ManageThreads { get; }
Property Value
|
Improve this Doc
View Source
ManageWebhooks
If true, a user may edit the webhooks for this channel.
Declaration
public readonly bool ManageWebhooks { get; }
Property Value
|
Improve this Doc
View Source
MentionEveryone
If true, a user may mention @everyone.
Declaration
public readonly bool MentionEveryone { get; }
Property Value
|
Improve this Doc
View Source
MoveMembers
If true, a user may move other users between voice channels.
Declaration
public readonly bool MoveMembers { get; }
Property Value
|
Improve this Doc
View Source
MuteMembers
If true, a user may mute users.
Declaration
public readonly bool MuteMembers { get; }
Property Value
|
Improve this Doc
View Source
PrioritySpeaker
If true, a user may use priority speaker in a voice channel.
Declaration
public readonly bool PrioritySpeaker { get; }
Property Value
|
Improve this Doc
View Source
RawValue
Declaration
public readonly ulong RawValue { get; }
Property Value
|
Improve this Doc
View Source
ReadMessageHistory
If true, a user may read previous messages.
Declaration
public readonly bool ReadMessageHistory { get; }
Property Value
|
Improve this Doc
View Source
RequestToSpeak
If true, a user may request to speak in stage channels.
Declaration
public readonly bool RequestToSpeak { get; }
Property Value
|
Improve this Doc
View Source
SendMessages
If true, a user may send messages.
Declaration
public readonly bool SendMessages { get; }
Property Value
|
Improve this Doc
View Source
SendMessagesInThreads
If true, a user may send messages in threads in this guild.
Declaration
public readonly bool SendMessagesInThreads { get; }
Property Value
|
Improve this Doc
View Source
SendTTSMessages
If true, a user may send text-to-speech messages.
Declaration
public readonly bool SendTTSMessages { get; }
Property Value
|
Improve this Doc
View Source
SendVoiceMessages
If true, a user can send voice messages in this channel.
Declaration
public readonly bool SendVoiceMessages { get; }
Property Value
|
Improve this Doc
View Source
SetVoiceChannelStatus
If true, a user can set the status of a voice channel.
Declaration
public readonly bool SetVoiceChannelStatus { get; }
Property Value
|
Improve this Doc
View Source
Speak
If true, a user may speak in a voice channel.
Declaration
public readonly bool Speak { get; }
Property Value
|
Improve this Doc
View Source
StartEmbeddedActivities
If true, a user launch application activities in voice channels in this guild.
Declaration
public readonly bool StartEmbeddedActivities { get; }
Property Value
|
Improve this Doc
View Source
Stream
If true, a user may stream video in a voice channel.
Declaration
public readonly bool Stream { get; }
Property Value
|
Improve this Doc
View Source
UseApplicationCommands
If true, a user may use application commands in this guild.
Declaration
public readonly bool UseApplicationCommands { get; }
Property Value
|
Improve this Doc
View Source
UseClydeAI
If true, a user can use the Clyde AI bot in this channel.
Declaration
public readonly bool UseClydeAI { get; }
Property Value
|
Improve this Doc
View Source
UseExternalEmojis
If true, a user may use custom emoji from other guilds.
Declaration
public readonly bool UseExternalEmojis { get; }
Property Value
|
Improve this Doc
View Source
UseExternalStickers
If true, a user may use external stickers in this guild.
Declaration
public readonly bool UseExternalStickers { get; }
Property Value
|
Improve this Doc
View Source
UseSoundboard
If true, a user can use soundboard in a voice channel.
Declaration
public readonly bool UseSoundboard { get; }
Property Value
|
Improve this Doc
View Source
UseVAD
If true, a user may use voice-activity-detection rather than push-to-talk.
Declaration
public readonly bool UseVAD { get; }
Property Value
|
Improve this Doc
View Source
ViewChannel
If true, a user may view channels.
Declaration
public readonly bool ViewChannel { get; }
Property Value
Methods
|
Improve this Doc
View Source
All(IChannel)
Declaration
public static ChannelPermissions All(IChannel channel)
Parameters
Returns
|
Improve this Doc
View Source
Has(ChannelPermission)
Declaration
public bool Has(ChannelPermission permission)
Parameters
Returns
|
Improve this Doc
View Source
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>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>)
Creates a new ChannelPermissions from this one, changing the provided non-null permissions.
Declaration
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, bool? useSoundboard = null, bool? createEvents = null, bool? sendVoiceMessages = null, bool? useClydeAI = null, bool? setVoiceChannelStatus = null)
Parameters
Returns
|
Improve this Doc
View Source
ToList()
Declaration
public List<ChannelPermission> ToList()
Returns
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns