why are these not awaited

This commit is contained in:
Cynthia Foxwell 2024-08-27 14:45:19 -06:00
parent 3d7b026f4c
commit 8e7bd2a1d9
2 changed files with 3 additions and 3 deletions

View file

@ -152,7 +152,7 @@ bot.once("ready", async () => {
try { try {
const channel = await bot.getDMChannel(config.owner_id); const channel = await bot.getDMChannel(config.owner_id);
if (channel) { if (channel) {
channel.createMessage({ await channel.createMessage({
content: "<:ms_tick:503341995348066313> Loaded HiddenPhox.", content: "<:ms_tick:503341995348066313> Loaded HiddenPhox.",
}); });
} }

View file

@ -197,7 +197,7 @@ async function CommandDispatcher(msg) {
} }
} }
} catch (err) { } catch (err) {
msg.channel.createMessage({ await msg.channel.createMessage({
content: `:warning: An error has occurred:\n\`\`\`${err}\`\`\``, content: `:warning: An error has occurred:\n\`\`\`${err}\`\`\``,
allowedMentions: { allowedMentions: {
repliedUser: false, repliedUser: false,
@ -210,7 +210,7 @@ async function CommandDispatcher(msg) {
} }
} }
} catch (err) { } catch (err) {
msg.channel.createMessage({ await msg.channel.createMessage({
content: `:warning: An error has occurred:\n\`\`\`${err}\`\`\``, content: `:warning: An error has occurred:\n\`\`\`${err}\`\`\``,
allowedMentions: { allowedMentions: {
repliedUser: false, repliedUser: false,