why are these not awaited
This commit is contained in:
parent
3d7b026f4c
commit
8e7bd2a1d9
2 changed files with 3 additions and 3 deletions
|
@ -152,7 +152,7 @@ bot.once("ready", async () => {
|
|||
try {
|
||||
const channel = await bot.getDMChannel(config.owner_id);
|
||||
if (channel) {
|
||||
channel.createMessage({
|
||||
await channel.createMessage({
|
||||
content: "<:ms_tick:503341995348066313> Loaded HiddenPhox.",
|
||||
});
|
||||
}
|
||||
|
|
|
@ -197,7 +197,7 @@ async function CommandDispatcher(msg) {
|
|||
}
|
||||
}
|
||||
} catch (err) {
|
||||
msg.channel.createMessage({
|
||||
await msg.channel.createMessage({
|
||||
content: `:warning: An error has occurred:\n\`\`\`${err}\`\`\``,
|
||||
allowedMentions: {
|
||||
repliedUser: false,
|
||||
|
@ -210,7 +210,7 @@ async function CommandDispatcher(msg) {
|
|||
}
|
||||
}
|
||||
} catch (err) {
|
||||
msg.channel.createMessage({
|
||||
await msg.channel.createMessage({
|
||||
content: `:warning: An error has occurred:\n\`\`\`${err}\`\`\``,
|
||||
allowedMentions: {
|
||||
repliedUser: false,
|
||||
|
|
Loading…
Reference in a new issue