Update FluxEvents and Permissions

This commit is contained in:
Nuckyz 2024-05-07 22:06:45 -03:00
parent f1e2d5572a
commit 8b6620ca2f
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
2 changed files with 44 additions and 41 deletions

File diff suppressed because one or more lines are too long

View file

@ -83,53 +83,56 @@ interface RestRequestData {
export type RestAPI = Record<"delete" | "get" | "patch" | "post" | "put", (data: RestRequestData) => Promise<any>>; export type RestAPI = Record<"delete" | "get" | "patch" | "post" | "put", (data: RestRequestData) => Promise<any>>;
export type Permissions = "CREATE_INSTANT_INVITE" export type Permissions = "ADD_REACTIONS"
| "KICK_MEMBERS"
| "BAN_MEMBERS"
| "ADMINISTRATOR" | "ADMINISTRATOR"
| "MANAGE_CHANNELS" | "ATTACH_FILES"
| "MANAGE_GUILD" | "BAN_MEMBERS"
| "CHANGE_NICKNAME" | "CHANGE_NICKNAME"
| "CONNECT"
| "CREATE_EVENTS"
| "CREATE_GUILD_EXPRESSIONS"
| "CREATE_INSTANT_INVITE"
| "CREATE_PRIVATE_THREADS"
| "CREATE_PUBLIC_THREADS"
| "DEAFEN_MEMBERS"
| "EMBED_LINKS"
| "KICK_MEMBERS"
| "MANAGE_CHANNELS"
| "MANAGE_EVENTS"
| "MANAGE_GUILD"
| "MANAGE_GUILD_EXPRESSIONS"
| "MANAGE_MESSAGES"
| "MANAGE_NICKNAMES" | "MANAGE_NICKNAMES"
| "MANAGE_ROLES" | "MANAGE_ROLES"
| "MANAGE_THREADS"
| "MANAGE_WEBHOOKS" | "MANAGE_WEBHOOKS"
| "MANAGE_GUILD_EXPRESSIONS" | "MENTION_EVERYONE"
| "CREATE_GUILD_EXPRESSIONS" | "MODERATE_MEMBERS"
| "MOVE_MEMBERS"
| "MUTE_MEMBERS"
| "PRIORITY_SPEAKER"
| "READ_MESSAGE_HISTORY"
| "REQUEST_TO_SPEAK"
| "SEND_MESSAGES"
| "SEND_MESSAGES_IN_THREADS"
| "SEND_POLLS"
| "SEND_TTS_MESSAGES"
| "SEND_VOICE_MESSAGES"
| "SET_VOICE_CHANNEL_STATUS"
| "SPEAK"
| "STREAM"
| "USE_APPLICATION_COMMANDS"
| "USE_CLYDE_AI"
| "USE_EMBEDDED_ACTIVITIES"
| "USE_EXTERNAL_EMOJIS"
| "USE_EXTERNAL_SOUNDS"
| "USE_EXTERNAL_STICKERS"
| "USE_SOUNDBOARD"
| "USE_VAD"
| "VIEW_AUDIT_LOG" | "VIEW_AUDIT_LOG"
| "VIEW_CHANNEL" | "VIEW_CHANNEL"
| "VIEW_GUILD_ANALYTICS"
| "VIEW_CREATOR_MONETIZATION_ANALYTICS" | "VIEW_CREATOR_MONETIZATION_ANALYTICS"
| "MODERATE_MEMBERS" | "VIEW_GUILD_ANALYTICS";
| "SEND_MESSAGES"
| "SEND_TTS_MESSAGES"
| "MANAGE_MESSAGES"
| "EMBED_LINKS"
| "ATTACH_FILES"
| "READ_MESSAGE_HISTORY"
| "MENTION_EVERYONE"
| "USE_EXTERNAL_EMOJIS"
| "ADD_REACTIONS"
| "USE_APPLICATION_COMMANDS"
| "MANAGE_THREADS"
| "CREATE_PUBLIC_THREADS"
| "CREATE_PRIVATE_THREADS"
| "USE_EXTERNAL_STICKERS"
| "SEND_MESSAGES_IN_THREADS"
| "SEND_VOICE_MESSAGES"
| "CONNECT"
| "SPEAK"
| "MUTE_MEMBERS"
| "DEAFEN_MEMBERS"
| "MOVE_MEMBERS"
| "USE_VAD"
| "PRIORITY_SPEAKER"
| "STREAM"
| "USE_EMBEDDED_ACTIVITIES"
| "USE_SOUNDBOARD"
| "USE_EXTERNAL_SOUNDS"
| "REQUEST_TO_SPEAK"
| "MANAGE_EVENTS"
| "CREATE_EVENTS";
export type PermissionsBits = Record<Permissions, bigint>; export type PermissionsBits = Record<Permissions, bigint>;