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#
Raw Normal View History

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