Browse Source

Added remarks about 2FA requirement for guild permissions

pull/1161/head
Chris Johnston 7 years ago
parent
commit
d64f670f2b
1 changed files with 41 additions and 5 deletions
  1. +41
    -5
      src/Discord.Net.Core/Entities/Permissions/GuildPermission.cs

+ 41
- 5
src/Discord.Net.Core/Entities/Permissions/GuildPermission.cs View File

@@ -14,23 +14,43 @@ namespace Discord
/// <summary> /// <summary>
/// Allows kicking members. /// Allows kicking members.
/// </summary> /// </summary>
/// <remarks>
/// This permission requires the owner account to use two-factor
/// authentication when used on a guild that has server-wide 2FA enabled.
/// </remarks>
KickMembers = 0x00_00_00_02, KickMembers = 0x00_00_00_02,
/// <summary> /// <summary>
/// Allows banning members. /// Allows banning members.
/// </summary> /// </summary>
BanMembers = 0x00_00_00_04,
/// <remarks>
/// This permission requires the owner account to use two-factor
/// authentication when used on a guild that has server-wide 2FA enabled.
/// </remarks>
BanMembers = 0x00_00_00_04,
/// <summary> /// <summary>
/// Allows all permissions and bypasses channel permission overwrites. /// Allows all permissions and bypasses channel permission overwrites.
/// </summary> /// </summary>
Administrator = 0x00_00_00_08,
/// <remarks>
/// This permission requires the owner account to use two-factor
/// authentication when used on a guild that has server-wide 2FA enabled.
/// </remarks>
Administrator = 0x00_00_00_08,
/// <summary> /// <summary>
/// Allows management and editing of channels. /// Allows management and editing of channels.
/// </summary> /// </summary>
ManageChannels = 0x00_00_00_10,
/// <remarks>
/// This permission requires the owner account to use two-factor
/// authentication when used on a guild that has server-wide 2FA enabled.
/// </remarks>
ManageChannels = 0x00_00_00_10,
/// <summary> /// <summary>
/// Allows management and editing of the guild. /// Allows management and editing of the guild.
/// </summary> /// </summary>
ManageGuild = 0x00_00_00_20,
/// <remarks>
/// This permission requires the owner account to use two-factor
/// authentication when used on a guild that has server-wide 2FA enabled.
/// </remarks>
ManageGuild = 0x00_00_00_20,


// Text // Text
/// <summary> /// <summary>
@@ -52,7 +72,11 @@ namespace Discord
/// <summary> /// <summary>
/// Allows for deletion of other users messages. /// Allows for deletion of other users messages.
/// </summary> /// </summary>
ManageMessages = 0x00_00_20_00,
/// <remarks>
/// This permission requires the owner account to use two-factor
/// authentication when used on a guild that has server-wide 2FA enabled.
/// </remarks>
ManageMessages = 0x00_00_20_00,
/// <summary> /// <summary>
/// Allows links sent by users with this permission will be auto-embedded. /// Allows links sent by users with this permission will be auto-embedded.
/// </summary> /// </summary>
@@ -114,14 +138,26 @@ namespace Discord
/// <summary> /// <summary>
/// Allows management and editing of roles. /// Allows management and editing of roles.
/// </summary> /// </summary>
/// <remarks>
/// This permission requires the owner account to use two-factor
/// authentication when used on a guild that has server-wide 2FA enabled.
/// </remarks>
ManageRoles = 0x10_00_00_00, ManageRoles = 0x10_00_00_00,
/// <summary> /// <summary>
/// Allows management and editing of webhooks. /// Allows management and editing of webhooks.
/// </summary> /// </summary>
/// <remarks>
/// This permission requires the owner account to use two-factor
/// authentication when used on a guild that has server-wide 2FA enabled.
/// </remarks>
ManageWebhooks = 0x20_00_00_00, ManageWebhooks = 0x20_00_00_00,
/// <summary> /// <summary>
/// Allows management and editing of emojis. /// Allows management and editing of emojis.
/// </summary> /// </summary>
/// <remarks>
/// This permission requires the owner account to use two-factor
/// authentication when used on a guild that has server-wide 2FA enabled.
/// </remarks>
ManageEmojis = 0x40_00_00_00 ManageEmojis = 0x40_00_00_00
} }
} }

Loading…
Cancel
Save