Archived
1
0
Fork 0
This repository has been archived on 2024-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
maki/Maki/DiscordPermission.cs

157 lines
4 KiB
C#

using System;
namespace Maki
{
/// <summary>
/// Discord Permission Flags
/// </summary>
[Flags]
public enum DiscordPermission : long
{
/// <summary>
/// Allows creation of instant invites
/// </summary>
CreateInstantInvite = 0x1,
/// <summary>
/// Allows kicking members
/// </summary>
KickMembers = 0x2,
/// <summary>
/// Allows banning members
/// </summary>
BanMembers = 0x4,
/// <summary>
/// Allows all permissions and bypasses channel permission overwrites
/// </summary>
Administrator = 0x8,
/// <summary>
/// Allows management and editing of channels
/// </summary>
ManageChannels = 0x10,
/// <summary>
/// Allows management and editing of the guild
/// </summary>
ManageGuild = 0x20,
/// <summary>
/// Allows for the addition of reactions to messages
/// </summary>
AddReactions = 0x40,
/// <summary>
/// Allows viewing the audit log
/// </summary>
ViewAuditLog = 0x80,
/// <summary>
/// Allows reading messages in a channel. The channel will not appear for users without this permission
/// </summary>
ReadMessages = 0x400,
/// <summary>
/// Allows for sending messages in a channel.
/// </summary>
SendMessages = 0x800,
/// <summary>
/// Allows for sending of /tts messages
/// </summary>
SendTTSMessages = 0x1000,
/// <summary>
/// Allows for deletion of other users messages
/// </summary>
ManageMessages = 0x2000,
/// <summary>
/// Links sent by this user will be auto-embedded
/// </summary>
EmbedLinks = 0x4000,
/// <summary>
/// Allows for uploading images and files
/// </summary>
AttachFiles = 0x8000,
/// <summary>
/// Allows for reading of message history
/// </summary>
ReadMessageHistory = 0x10000,
/// <summary>
/// Allows for using the @everyone tag to notify all users in a channel, and the @here tag to notify all online users in a channel
/// </summary>
MentionEveryone = 0x20000,
/// <summary>
/// Allows the usage of custom emojis from other servers
/// </summary>
ExternalEmojis = 0x40000,
/// <summary>
/// Allows for joining of a voice channel
/// </summary>
VoiceConnect = 0x100000,
/// <summary>
/// Allows for speaking in a voice channel
/// </summary>
VoiceSpeak = 0x200000,
/// <summary>
/// Allows for muting members in a voice channel
/// </summary>
VoiceMuteMembers = 0x400000,
/// <summary>
/// Allows for deafening of members in a voice channel
/// </summary>
VoiceDeafenMembers = 0x800000,
/// <summary>
/// Allows for moving of members between voice channels
/// </summary>
VoiceMoveMembers = 0x1000000,
/// <summary>
/// Allows for using voice-activity-detection in a voice channel
/// </summary>
VoiceUseVAD = 0x2000000,
/// <summary>
/// Allows for modification of own nickname
/// </summary>
ChangeNickname = 0x4000000,
/// <summary>
/// Allows for modification of other users nicknames
/// </summary>
ManageNicknames = 0x8000000,
/// <summary>
/// Allows management and editing of roles
/// </summary>
ManageRoles = 0x10000000,
/// <summary>
/// Allows management and editing of webhooks
/// </summary>
ManageWebhooks = 0x20000000,
/// <summary>
/// Allows management and editing of emojis
/// </summary>
ManageEmojis = 0x40000000,
/// <summary>
/// Blank permissions
/// </summary>
None = 0,
}
}