Fixed crash command

This commit is contained in:
CorwinDev 2022-12-28 21:17:27 +01:00
parent 0a34a94379
commit b57e59cc33

View file

@ -112,6 +112,7 @@ module.exports = async (client, interaction, args) => {
i.deferUpdate();
index = result + 1;
profit = money * multiplier;
Schema.findOne({ Guild: interaction.guild.id, User: user.id }, async (err, data) => {
if (data) {
@ -122,7 +123,6 @@ module.exports = async (client, interaction, args) => {
return client.embed({
desc: `Crash Results of ${user}`,
edit: true,
fields: [
{
name: `Profit`,
@ -130,7 +130,8 @@ module.exports = async (client, interaction, args) => {
inline: false,
}
],
components: [disableRow]
components: [disableRow],
type: 'edit'
}, msg)
}