fix createMessage calls using strings
This commit is contained in:
parent
977fd48023
commit
ff6af3c90e
2 changed files with 6 additions and 2 deletions
|
@ -70,7 +70,9 @@ bot.once("ready", async () => {
|
||||||
|
|
||||||
const channel = await bot.users.get(config.owner_id)?.createDM();
|
const channel = await bot.users.get(config.owner_id)?.createDM();
|
||||||
if (channel) {
|
if (channel) {
|
||||||
channel.createMessage("<:ms_tick:503341995348066313> Loaded HiddenPhox.");
|
channel.createMessage({
|
||||||
|
content: "<:ms_tick:503341995348066313> Loaded HiddenPhox.",
|
||||||
|
});
|
||||||
}
|
}
|
||||||
bot.on("ready", () => {
|
bot.on("ready", () => {
|
||||||
logger.info("hf:main", "Reconnected to Discord.");
|
logger.info("hf:main", "Reconnected to Discord.");
|
||||||
|
|
|
@ -97,7 +97,9 @@ hf.bot.once("ready", () => {
|
||||||
minutes == 0 &&
|
minutes == 0 &&
|
||||||
channel != null
|
channel != null
|
||||||
) {
|
) {
|
||||||
await channel.createMessage(":alarm_clock: " + data.message);
|
await channel.createMessage({
|
||||||
|
content: ":alarm_clock: " + data.message,
|
||||||
|
});
|
||||||
await setLastRun(data.user, date);
|
await setLastRun(data.user, date);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue