separated type definitions and util functions
This commit is contained in:
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -25,7 +25,7 @@ const api_1 = require("./api");
|
||||
const discord_1 = require("./discord");
|
||||
const Lang = __importStar(require("./lang"));
|
||||
const queue_1 = require("./queue");
|
||||
const util_1 = require("./util");
|
||||
const main_1 = require("./util/main");
|
||||
const CLIENT = new discord_js_1.Client({ intents: [discord_js_1.Intents.FLAGS.GUILDS] });
|
||||
//init logs with a timestamp
|
||||
console.log(new Date().toISOString() + '\n\n');
|
||||
@@ -76,7 +76,7 @@ CLIENT.on('interactionCreate', async (interaction) => {
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof util_1.errorMessage) {
|
||||
if (e instanceof main_1.errorMessage) {
|
||||
if (interaction.deferred || interaction.replied)
|
||||
interaction.editReply(e.msg);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user