Files
DRB-CnC/Client/discord-bot/utilities/messageHandler.js
Logan Cusano e5d885cc3e Logging Update
- Changed to uniform logging with the 'debug' module
- Updated all apps
2022-12-11 21:11:29 -05:00

9 lines
375 B
JavaScript

// Debug
import ModuleDebugBuilder from "./moduleDebugBuilder.js";
const log = new ModuleDebugBuilder("bot", "messageHandler");
export function replyToInteraction(interaction, message){
interaction.reply({ content: message, fetchReply: true })
.then((message) => log.DEBUG(`Reply sent with content ${message.content}`))
.catch((err) => log.ERROR(err));
}