From d64f670f2b224eaf9945a022684d40c0e8d36287 Mon Sep 17 00:00:00 2001 From: Chris Johnston Date: Mon, 30 Jul 2018 21:54:23 -0700 Subject: [PATCH] Added remarks about 2FA requirement for guild permissions --- .../Entities/Permissions/GuildPermission.cs | 46 +++++++++++++++++-- 1 file changed, 41 insertions(+), 5 deletions(-) diff --git a/src/Discord.Net.Core/Entities/Permissions/GuildPermission.cs b/src/Discord.Net.Core/Entities/Permissions/GuildPermission.cs index f2724778f..bfe0c4797 100644 --- a/src/Discord.Net.Core/Entities/Permissions/GuildPermission.cs +++ b/src/Discord.Net.Core/Entities/Permissions/GuildPermission.cs @@ -14,23 +14,43 @@ namespace Discord /// /// Allows kicking members. /// + /// + /// This permission requires the owner account to use two-factor + /// authentication when used on a guild that has server-wide 2FA enabled. + /// KickMembers = 0x00_00_00_02, /// /// Allows banning members. /// - BanMembers = 0x00_00_00_04, + /// + /// This permission requires the owner account to use two-factor + /// authentication when used on a guild that has server-wide 2FA enabled. + /// + BanMembers = 0x00_00_00_04, /// /// Allows all permissions and bypasses channel permission overwrites. /// - Administrator = 0x00_00_00_08, + /// + /// This permission requires the owner account to use two-factor + /// authentication when used on a guild that has server-wide 2FA enabled. + /// + Administrator = 0x00_00_00_08, /// /// Allows management and editing of channels. /// - ManageChannels = 0x00_00_00_10, + /// + /// This permission requires the owner account to use two-factor + /// authentication when used on a guild that has server-wide 2FA enabled. + /// + ManageChannels = 0x00_00_00_10, /// /// Allows management and editing of the guild. /// - ManageGuild = 0x00_00_00_20, + /// + /// This permission requires the owner account to use two-factor + /// authentication when used on a guild that has server-wide 2FA enabled. + /// + ManageGuild = 0x00_00_00_20, // Text /// @@ -52,7 +72,11 @@ namespace Discord /// /// Allows for deletion of other users messages. /// - ManageMessages = 0x00_00_20_00, + /// + /// This permission requires the owner account to use two-factor + /// authentication when used on a guild that has server-wide 2FA enabled. + /// + ManageMessages = 0x00_00_20_00, /// /// Allows links sent by users with this permission will be auto-embedded. /// @@ -114,14 +138,26 @@ namespace Discord /// /// Allows management and editing of roles. /// + /// + /// This permission requires the owner account to use two-factor + /// authentication when used on a guild that has server-wide 2FA enabled. + /// ManageRoles = 0x10_00_00_00, /// /// Allows management and editing of webhooks. /// + /// + /// This permission requires the owner account to use two-factor + /// authentication when used on a guild that has server-wide 2FA enabled. + /// ManageWebhooks = 0x20_00_00_00, /// /// Allows management and editing of emojis. /// + /// + /// This permission requires the owner account to use two-factor + /// authentication when used on a guild that has server-wide 2FA enabled. + /// ManageEmojis = 0x40_00_00_00 } }