fix createMessage calls using strings

This commit is contained in:
Cynthia Foxwell 2022-10-09 12:15:37 -06:00
parent 977fd48023
commit ff6af3c90e
2 changed files with 6 additions and 2 deletions

View File

@ -70,7 +70,9 @@ bot.once("ready", async () => {
const channel = await bot.users.get(config.owner_id)?.createDM();
if (channel) {
channel.createMessage("<:ms_tick:503341995348066313> Loaded HiddenPhox.");
channel.createMessage({
content: "<:ms_tick:503341995348066313> Loaded HiddenPhox.",
});
}
bot.on("ready", () => {
logger.info("hf:main", "Reconnected to Discord.");

View File

@ -97,7 +97,9 @@ hf.bot.once("ready", () => {
minutes == 0 &&
channel != null
) {
await channel.createMessage(":alarm_clock: " + data.message);
await channel.createMessage({
content: ":alarm_clock: " + data.message,
});
await setLastRun(data.user, date);
}
}