implement first interaction handling
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { config } from "config";
|
||||
import { Routes } from "discord.js";
|
||||
import getCommands from "entitites/commands";
|
||||
import { logger } from "lib/common-logger";
|
||||
import { discordRestClient } from "lib/rest-client";
|
||||
|
||||
export const publishCommands = async () => {
|
||||
@@ -11,8 +12,8 @@ export const publishCommands = async () => {
|
||||
body: getCommands(),
|
||||
},
|
||||
);
|
||||
console.log("Successfully added commands");
|
||||
logger.info("successfully added commands");
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
logger.error("failed to add commands:", e);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user