Handle almost all of the promise rejections

fixes #7
This commit is contained in:
Wroclaw 2023-07-31 12:17:14 +02:00
parent cf3102cbc5
commit 5a116b0531
4 changed files with 17 additions and 15 deletions

View file

@ -38,7 +38,7 @@ export default class MyLimit extends Command implements Command {
const nthUseInLimitTimestamp = await nthUseInLimitTimestampPromise;
if (userLimit === false || nthUseInLimitTimestamp === false) {
interaction.reply({
await interaction.reply({
embeds: [{
author: { name: interaction.user.username, icon_url: interaction.user.displayAvatarURL({ size: 128 }) },
description: "User is a VIP, so there is no limit",
@ -48,7 +48,7 @@ export default class MyLimit extends Command implements Command {
return;
}
interaction.reply({
await interaction.reply({
embeds: [{
author: { name: interaction.user.username, icon_url: interaction.user.displayAvatarURL({ size: 128 }) },
fields: [