|
@ -168,9 +168,10 @@ export async function execute(interaction) { |
|
|
filter: overrideFilter, |
|
|
filter: overrideFilter, |
|
|
}) |
|
|
}) |
|
|
.then(i => { |
|
|
.then(i => { |
|
|
updateScore(true, score, authorId).then((msgToReply) => |
|
|
updateScore(true, score, authorId).then(async msgToReply => { |
|
|
i.reply(msgToReply), |
|
|
await i.reply(msgToReply); |
|
|
); |
|
|
overrideMsg.edit({ components: [] }); |
|
|
|
|
|
}); |
|
|
}).catch(err => log({ logger: 'train', content: `Failed to override score: ${err}`, level: 'error' })); |
|
|
}).catch(err => log({ logger: 'train', content: `Failed to override score: ${err}`, level: 'error' })); |
|
|
}).catch(err => log({ logger: 'train', content: `Failed to send override message: ${err}`, level: 'error' })); |
|
|
}).catch(err => log({ logger: 'train', content: `Failed to send override message: ${err}`, level: 'error' })); |
|
|
} |
|
|
} |
|
|