Functioning audio bot
This commit is contained in:
@@ -2,6 +2,9 @@ import {SlashCommandBuilder} from "@discordjs/builders";
|
||||
import {REST} from "@discordjs/rest";
|
||||
import {getApplicationID, getGuildID, getTOKEN} from "./configHandler.js";
|
||||
import { Routes, ChannelType } from "discord.js";
|
||||
// Debug
|
||||
import debugBuilder from "./debugBuilder.js";
|
||||
const log = new debugBuilder("bot", "registerCommands");
|
||||
|
||||
const pingCommand = new SlashCommandBuilder()
|
||||
.setName("ping")
|
||||
@@ -38,8 +41,9 @@ export default async function registerCommands(callback){
|
||||
await rest.put(Routes.applicationGuildCommands(clientID, guildID), {
|
||||
body: commands,
|
||||
});
|
||||
log.DEBUG("Successfully registered the following commands: ", commands)
|
||||
callback();
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
log.ERROR(err);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user