diff --git a/NetCord/Permissions.cs b/NetCord/Permissions.cs index e25af65d..2853f2eb 100644 --- a/NetCord/Permissions.cs +++ b/NetCord/Permissions.cs @@ -3,45 +3,223 @@ [Flags] public enum Permissions : ulong { - CreateInstantInvite = (ulong)1 << 0, - KickUsers = (ulong)1 << 1, - BanUsers = (ulong)1 << 2, - Administrator = (ulong)1 << 3, - ManageChannels = (ulong)1 << 4, - ManageGuild = (ulong)1 << 5, - AddReactions = (ulong)1 << 6, - ViewAuditLog = (ulong)1 << 7, - PrioritySpeaker = (ulong)1 << 8, - Stream = (ulong)1 << 9, - ViewChannel = (ulong)1 << 10, - SendMessages = (ulong)1 << 11, - SendTtsMessages = (ulong)1 << 12, - ManageMessages = (ulong)1 << 13, - EmbedLinks = (ulong)1 << 14, - AttachFiles = (ulong)1 << 15, - ReadMessageHistory = (ulong)1 << 16, - MentionEveryone = (ulong)1 << 17, - UseExternalEmojis = (ulong)1 << 18, - ViewGuildInsights = (ulong)1 << 19, - Connect = (ulong)1 << 20, - Speak = (ulong)1 << 21, - MuteUsers = (ulong)1 << 22, - DeafenUsers = (ulong)1 << 23, - MoveUsers = (ulong)1 << 24, - UseVoiceActivityDetection = (ulong)1 << 25, - ChangeNickname = (ulong)1 << 26, - ManageNicknames = (ulong)1 << 27, - ManageRoles = (ulong)1 << 28, - ManageWebhooks = (ulong)1 << 29, - ManageEmojisAndStickers = (ulong)1 << 30, - UseApplicationCommands = (ulong)1 << 31, - RequestToSpeak = (ulong)1 << 32, - ManageEvents = (ulong)1 << 33, - ManageThreads = (ulong)1 << 34, - CreatePublicThreads = (ulong)1 << 35, - CreatePrivateThreads = (ulong)1 << 36, - UseExternalStickers = (ulong)1 << 37, - SendMessagesInThreads = (ulong)1 << 38, - StartEmbeddedActivities = (ulong)1 << 39, - ModerateUsers = (ulong)1 << 40, + /// + /// Allows creation of instant invites. + /// + CreateInstantInvite = 1uL << 0, + + /// + /// Allows kicking guild users. + /// + KickUsers = 1uL << 1, + + /// + /// Allows banning guild users. + /// + BanUsers = 1uL << 2, + + /// + /// Allows all permissions and bypasses channel permission overwrites. + /// + Administrator = 1uL << 3, + + /// + /// Allows management and editing of channels. + /// + ManageChannels = 1uL << 4, + + /// + /// Allows management and editing of the guild. + /// + ManageGuild = 1uL << 5, + + /// + /// Allows for the addition of reactions to messages. + /// + AddReactions = 1uL << 6, + + /// + /// Allows for viewing of audit logs. + /// + ViewAuditLog = 1uL << 7, + + /// + /// Allows for using priority speaker in a voice channel. + /// + PrioritySpeaker = 1uL << 8, + + /// + /// Allows the user to go live. + /// + Stream = 1uL << 9, + + /// + /// Allows guild users to view a channel, which includes reading messages in text channels and joining voice channels. + /// + ViewChannel = 1uL << 10, + + /// + /// Allows for sending messages in a channel and creating threads in a forum (does not allow sending messages in threads). + /// + SendMessages = 1uL << 11, + + /// + /// Allows for sending of /tts messages. + /// + SendTtsMessages = 1uL << 12, + + /// + /// Allows for deletion of other users messages. + /// + ManageMessages = 1uL << 13, + + /// + /// Links sent by users with this permission will be auto-embedded. + /// + EmbedLinks = 1uL << 14, + + /// + /// Allows for uploading images and files. + /// + AttachFiles = 1uL << 15, + + /// + /// Allows for reading of message history. + /// + ReadMessageHistory = 1uL << 16, + + /// + /// Allows for using the tag to notify all users in a channel, and the tag to notify all online users in a channel. + /// + MentionEveryone = 1uL << 17, + + /// + /// Allows the usage of custom emojis from other servers. + /// + UseExternalEmojis = 1uL << 18, + + /// + /// Allows for viewing guild insights. + /// + ViewGuildInsights = 1uL << 19, + + /// + /// Allows for joining of a voice channel. + /// + Connect = 1uL << 20, + + /// + /// Allows for speaking in a voice channel. + /// + Speak = 1uL << 21, + + /// + /// Allows for muting users in a voice channel. + /// + MuteUsers = 1uL << 22, + + /// + /// Allows for deafening of users in a voice channel. + /// + DeafenUsers = 1uL << 23, + + /// + /// Allows for moving of users between voice channels. + /// + MoveUsers = 1uL << 24, + + /// + /// Allows for using voice-activity-detection in a voice channel. + /// + UseVoiceActivityDetection = 1uL << 25, + + /// + /// Allows for modification of own nickname. + /// + ChangeNickname = 1uL << 26, + + /// + /// Allows for modification of other users nicknames. + /// + ManageNicknames = 1uL << 27, + + /// + /// Allows management and editing of roles. + /// + ManageRoles = 1uL << 28, + + /// + /// Allows management and editing of webhooks. + /// + ManageWebhooks = 1uL << 29, + + /// + /// Allows management and editing of emojis, stickers, and soundboard sounds. + /// + ManageGuildExpressions = 1uL << 30, + + /// + /// Allows users to use application commands, including slash commands and context menu commands. + /// + UseApplicationCommands = 1uL << 31, + + /// + /// Allows for requesting to speak in stage channels. + /// + RequestToSpeak = 1uL << 32, + + /// + /// Allows for creating, editing, and deleting scheduled events. + /// + ManageEvents = 1uL << 33, + + /// + /// Allows for deleting and archiving threads, and viewing all private threads. + /// + ManageThreads = 1uL << 34, + + /// + /// Allows for creating public and announcement threads. + /// + CreatePublicThreads = 1uL << 35, + + /// + /// Allows for creating private threads. + /// + CreatePrivateThreads = 1uL << 36, + + /// + /// Allows the usage of custom stickers from other servers. + /// + UseExternalStickers = 1uL << 37, + + /// + /// Allows for sending messages in threads. + /// + SendMessagesInThreads = 1uL << 38, + + /// + /// Allows for using Activities (applications with the flag) in a voice channel. + /// + StartEmbeddedActivities = 1uL << 39, + + /// + /// Allows for timing out users to prevent them from sending or reacting to messages in chat and threads, and from speaking in voice and stage channels. + /// + ModerateUsers = 1uL << 40, + + /// + /// Allows for viewing role subscription insights. + /// + ViewCreatorMonetizationAnalytics = 1uL << 41, + + /// + /// Allows for using soundboard in a voice channel. + /// + UseSoundboard = 1uL << 42, + + /// + /// Allows the usage of custom soundboard sounds from other servers. + /// + UseExternalSounds = 1uL << 45, } diff --git a/NetCord/Rest/AllowedMentionsProperties.cs b/NetCord/Rest/AllowedMentionsProperties.cs index 96c2b51a..89d86547 100644 --- a/NetCord/Rest/AllowedMentionsProperties.cs +++ b/NetCord/Rest/AllowedMentionsProperties.cs @@ -7,7 +7,7 @@ namespace NetCord.Rest; public partial class AllowedMentionsProperties { /// - /// Allow and . + /// Allows and . /// public bool Everyone { get; set; } = true; @@ -22,7 +22,7 @@ public partial class AllowedMentionsProperties public IEnumerable? AllowedUsers { get; set; } /// - /// Allow reply mention. + /// Allows reply mention. /// public bool ReplyMention { get; set; }