-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd9ac1e
commit beccbab
Showing
9 changed files
with
194 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,5 @@ | ||
import { DiscordBotAPI } from '@divine-bridge/common'; | ||
import { PermissionsString } from 'discord.js'; | ||
|
||
import { Env } from './env.js'; | ||
|
||
export const discordBotApi = new DiscordBotAPI(Env.DISCORD_BOT_TOKEN); | ||
|
||
export const readablePermissionsMap: Record<PermissionsString, string> = { | ||
AddReactions: 'Add Reactions', | ||
Administrator: 'Administrator', | ||
AttachFiles: 'Attach Files', | ||
BanMembers: 'Ban Members', | ||
ChangeNickname: 'Change Nickname', | ||
Connect: 'Connect', | ||
CreateInstantInvite: 'Create Instant 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', | ||
ManageEvents: 'Manage Events', | ||
ManageGuild: 'Manage Guild', | ||
ManageGuildExpressions: 'Manage Guild Expressions', | ||
ManageMessages: 'Manage Messages', | ||
ManageNicknames: 'Manage Nicknames', | ||
ManageRoles: 'Manage Roles', | ||
ManageThreads: 'Manage Threads', | ||
ManageWebhooks: 'Manage Webhooks', | ||
MentionEveryone: 'Mention Everyone', | ||
ModerateMembers: 'Moderate Members', | ||
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 TTS Messages', | ||
SendVoiceMessages: 'Send Voice Messages', | ||
Stream: 'Stream', | ||
Speak: 'Speak', | ||
UseApplicationCommands: 'Use Application Commands', | ||
UseEmbeddedActivities: 'Use Embedded Activities', | ||
UseExternalEmojis: 'Use External Emojis', | ||
UseExternalSounds: 'Use External Sounds', | ||
UseExternalStickers: 'Use External Stickers', | ||
UseSoundboard: 'Use Soundboard', | ||
UseVAD: 'Use VAD', | ||
ViewAuditLog: 'View Audit Log', | ||
ViewChannel: 'View Channel', | ||
ViewCreatorMonetizationAnalytics: 'View Creator Monetization Analytics', | ||
ViewGuildInsights: 'View Guild Insights', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,11 @@ | |
] | ||
}, | ||
"packageManager": "[email protected]", | ||
"pnpm": { | ||
"overrides": { | ||
"undici": "5.28.4" | ||
} | ||
}, | ||
"scripts": { | ||
"build": "turbo run build", | ||
"build:server": "turbo run build --filter server", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.