🧑💻 Fixed some more code smells
This commit is contained in:
parent
3f6e926789
commit
b3aa7faa23
1 changed files with 5 additions and 4 deletions
|
@ -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.");
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue