🧑‍💻 Fixed some more code smells

This commit is contained in:
Axel Olausson Holtenäs 2022-10-16 14:53:41 +02:00
parent 3f6e926789
commit b3aa7faa23

View file

@ -6,7 +6,7 @@ import {
ButtonStyle, ButtonStyle,
ChatInputCommandInteraction, ChatInputCommandInteraction,
EmbedBuilder, EmbedBuilder,
Message Message,
} from "discord.js"; } from "discord.js";
import { v4 as uuidv4 } from "uuid"; import { v4 as uuidv4 } from "uuid";
import encryption from "../../../../../helpers/encryption"; import encryption from "../../../../../helpers/encryption";
@ -200,19 +200,20 @@ export default {
.setColor(successColor) .setColor(successColor)
.setFooter({ text: footerText, iconURL: footerIcon }); .setFooter({ text: footerText, iconURL: footerIcon });
return interaction?.editReply({ await interaction?.editReply({
embeds: [interactionEmbed], embeds: [interactionEmbed],
}); });
return;
}); });
}) })
.catch(() => { .catch(() => {
throw new Error("Failed to update credits for user.") throw new Error("Failed to update credits for user.");
}); });
}) })
.catch(() => { .catch(() => {
throw new Error("Failed generating an voucher.") throw new Error("Failed generating an voucher.");
}); });
}, },
}; };