mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 22:15:37 +00:00
fix: Added eslint and prettier-eslint for formatting and linting
This commit is contained in:
1 parent
78dcc1b2e9
commit
d0f1c4103a
19 files changed
+1638
-71
No files matched your search
@@ -14,7 +14,9 @@ for (const file of systemCommandFiles) {
|
||||
systemCommands.push(systemCommand.data.toJSON());
|
||||
}
|
||||
|
||||
const rest = new REST({ version: '10' }).setToken(process.env.DISCORD_BOT_TOKEN);
|
||||
const rest = new REST({ version: '10' }).setToken(
|
||||
process.env.DISCORD_BOT_TOKEN
|
||||
);
|
||||
|
||||
(async () => {
|
||||
try {
|
||||
@@ -30,7 +32,10 @@ const rest = new REST({ version: '10' }).setToken(process.env.DISCORD_BOT_TOKEN)
|
||||
|
||||
for (const systemServerGuildId of systemServerGuildIds) {
|
||||
await rest.put(
|
||||
Routes.applicationGuildCommands(process.env.DISCORD_CLIENT_ID, systemServerGuildId),
|
||||
Routes.applicationGuildCommands(
|
||||
process.env.DISCORD_CLIENT_ID,
|
||||
systemServerGuildId
|
||||
),
|
||||
{
|
||||
body: systemCommands
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user