mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-07 19:17:19 +00:00
Update djs & knub (#395)
* update pkgs
Signed-off-by: GitHub <noreply@github.com>
* new knub typings
Signed-off-by: GitHub <noreply@github.com>
* more pkg updates
Signed-off-by: GitHub <noreply@github.com>
* more fixes
Signed-off-by: GitHub <noreply@github.com>
* channel typings
Signed-off-by: GitHub <noreply@github.com>
* more message utils typings fixes
Signed-off-by: GitHub <noreply@github.com>
* migrate permissions
Signed-off-by: GitHub <noreply@github.com>
* fix: InternalPoster webhookables
Signed-off-by: GitHub <noreply@github.com>
* djs typings: Attachment & Util
Signed-off-by: GitHub <noreply@github.com>
* more typings
Signed-off-by: GitHub <noreply@github.com>
* fix: rename permissionNames
Signed-off-by: GitHub <noreply@github.com>
* more fixes
Signed-off-by: GitHub <noreply@github.com>
* half the number of errors
* knub commands => messageCommands
Signed-off-by: GitHub <noreply@github.com>
* configPreprocessor => configParser
Signed-off-by: GitHub <noreply@github.com>
* fix channel.messages
Signed-off-by: GitHub <noreply@github.com>
* revert automod any typing
Signed-off-by: GitHub <noreply@github.com>
* more configParser typings
Signed-off-by: GitHub <noreply@github.com>
* revert
Signed-off-by: GitHub <noreply@github.com>
* remove knub type params
Signed-off-by: GitHub <noreply@github.com>
* fix more MessageEmbed / MessageOptions
Signed-off-by: GitHub <noreply@github.com>
* dumb commit for @almeidx to see why this is stupid
Signed-off-by: GitHub <noreply@github.com>
* temp disable custom_events
Signed-off-by: GitHub <noreply@github.com>
* more minor typings fixes - 23 err left
Signed-off-by: GitHub <noreply@github.com>
* update djs dep
* +debug build method (revert this)
Signed-off-by: GitHub <noreply@github.com>
* Revert "+debug build method (revert this)"
This reverts commit a80af1e729
.
* Redo +debug build (Revert this)
Signed-off-by: GitHub <noreply@github.com>
* uniform before/after Load shorthands
Signed-off-by: GitHub <noreply@github.com>
* remove unused imports & add prettier plugin
Signed-off-by: GitHub <noreply@github.com>
* env fixes for web platform hosting
Signed-off-by: GitHub <noreply@github.com>
* feat: knub v32-next; related fixes
* fix: allow legacy keys in change_perms action
* fix: request Message Content intent
* fix: use Knub's config validation logic in API
* fix(dashboard): fix error when there are no message and/or slash commands in a plugin
* fix(automod): start_thread action thread options
* fix(CustomEvents): message command types
* chore: remove unneeded type annotation
* feat: add forum channel icon; use thread icon for news threads
* chore: make tslint happy
* chore: fix formatting
---------
Signed-off-by: GitHub <noreply@github.com>
Co-authored-by: almeidx <almeidx@pm.me>
Co-authored-by: Dragory <2606411+Dragory@users.noreply.github.com>
This commit is contained in:
parent
293115af22
commit
06877e90cc
476 changed files with 2965 additions and 3251 deletions
|
@ -1,48 +1,46 @@
|
|||
import { PermissionFlags } from "discord.js";
|
||||
import type { PermissionFlagsBits } from "discord.js";
|
||||
import { EMPTY_CHAR } from "../utils";
|
||||
|
||||
export const PERMISSION_NAMES: Record<keyof PermissionFlags, string> = {
|
||||
ADD_REACTIONS: "Add Reactions",
|
||||
ADMINISTRATOR: "Administrator",
|
||||
ATTACH_FILES: "Attach Files",
|
||||
BAN_MEMBERS: "Ban Members",
|
||||
CHANGE_NICKNAME: "Change Nickname",
|
||||
CONNECT: "Connect",
|
||||
CREATE_INSTANT_INVITE: "Create Invite",
|
||||
CREATE_PRIVATE_THREADS: "Create Private Threads",
|
||||
CREATE_PUBLIC_THREADS: "Create Public Threads",
|
||||
DEAFEN_MEMBERS: "Deafen Members",
|
||||
EMBED_LINKS: "Embed Links",
|
||||
KICK_MEMBERS: "Kick Members",
|
||||
MANAGE_CHANNELS: "Manage Channels",
|
||||
MANAGE_EMOJIS_AND_STICKERS: "Manage Emojis and Stickers",
|
||||
MANAGE_GUILD: "Manage Server",
|
||||
MANAGE_MESSAGES: "Manage Messages",
|
||||
MANAGE_NICKNAMES: "Manage Nicknames",
|
||||
MANAGE_ROLES: "Manage Roles",
|
||||
MANAGE_THREADS: "Manage Threads",
|
||||
MANAGE_WEBHOOKS: "Manage Webhooks",
|
||||
MENTION_EVERYONE: `Mention @${EMPTY_CHAR}everyone, @${EMPTY_CHAR}here, and All Roles`,
|
||||
MOVE_MEMBERS: "Move Members",
|
||||
MUTE_MEMBERS: "Mute Members",
|
||||
PRIORITY_SPEAKER: "Priority Speaker",
|
||||
READ_MESSAGE_HISTORY: "Read Message History",
|
||||
REQUEST_TO_SPEAK: "Request to Speak",
|
||||
SEND_MESSAGES: "Send Messages",
|
||||
SEND_MESSAGES_IN_THREADS: "Send Messages in Threads",
|
||||
SEND_TTS_MESSAGES: "Send Text-To-Speech Messages",
|
||||
SPEAK: "Speak",
|
||||
START_EMBEDDED_ACTIVITIES: "Start Embedded Activities",
|
||||
STREAM: "Video",
|
||||
USE_APPLICATION_COMMANDS: "Use Application Commands",
|
||||
USE_EXTERNAL_EMOJIS: "Use External Emoji",
|
||||
USE_EXTERNAL_STICKERS: "Use External Stickers",
|
||||
USE_PRIVATE_THREADS: "Use Private Threads",
|
||||
USE_PUBLIC_THREADS: "Use Public Threads",
|
||||
USE_VAD: "Use Voice Activity",
|
||||
VIEW_AUDIT_LOG: "View Audit Log",
|
||||
VIEW_CHANNEL: "View Channels",
|
||||
VIEW_GUILD_INSIGHTS: "View Guild Insights",
|
||||
MODERATE_MEMBERS: "Moderate Members",
|
||||
MANAGE_EVENTS: "Manage Events",
|
||||
};
|
||||
export const PERMISSION_NAMES = {
|
||||
AddReactions: "Add Reactions",
|
||||
Administrator: "Administrator",
|
||||
AttachFiles: "Attach Files",
|
||||
BanMembers: "Ban Members",
|
||||
ChangeNickname: "Change Nickname",
|
||||
Connect: "Connect",
|
||||
CreateInstantInvite: "Create Invite",
|
||||
CreatePrivateThreads: "Create Private Threads",
|
||||
CreatePublicThreads: "Create Public Threads",
|
||||
DeafenMembers: "Deafen Members",
|
||||
EmbedLinks: "Embed Links",
|
||||
KickMembers: "Kick Members",
|
||||
ManageChannels: "Manage Channels",
|
||||
ManageEmojisAndStickers: "Manage Emojis and Stickers",
|
||||
ManageGuild: "Manage Server",
|
||||
ManageMessages: "Manage Messages",
|
||||
ManageNicknames: "Manage Nicknames",
|
||||
ManageRoles: "Manage Roles",
|
||||
ManageThreads: "Manage Threads",
|
||||
ManageWebhooks: "Manage Webhooks",
|
||||
MentionEveryone: `Mention @${EMPTY_CHAR}everyone, @${EMPTY_CHAR}here, and All Roles`,
|
||||
MoveMembers: "Move Members",
|
||||
MuteMembers: "Mute Members",
|
||||
PrioritySpeaker: "Priority Speaker",
|
||||
ReadMessageHistory: "Read Message History",
|
||||
RequestToSpeak: "Request to Speak",
|
||||
SendMessages: "Send Messages",
|
||||
SendMessagesInThreads: "Send Messages in Threads",
|
||||
SendTTSMessages: "Send Text-To-Speech Messages",
|
||||
Speak: "Speak",
|
||||
UseEmbeddedActivities: "Start Embedded Activities",
|
||||
Stream: "Video",
|
||||
UseApplicationCommands: "Use Application Commands",
|
||||
UseExternalEmojis: "Use External Emoji",
|
||||
UseExternalStickers: "Use External Stickers",
|
||||
UseVAD: "Use Voice Activity",
|
||||
ViewAuditLog: "View Audit Log",
|
||||
ViewChannel: "View Channels",
|
||||
ViewGuildInsights: "View Guild Insights",
|
||||
ModerateMembers: "Moderate Members",
|
||||
ManageEvents: "Manage Events",
|
||||
} as const satisfies Record<keyof typeof PermissionFlagsBits, string>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue