Move defer reply on reroll command
This commit is contained in:
parent
10806bd0f1
commit
891e013e37
1 changed files with 2 additions and 2 deletions
|
@ -28,11 +28,11 @@ export default class Reroll extends ButtonEvent {
|
|||
}
|
||||
|
||||
try {
|
||||
await interaction.deferReply();
|
||||
|
||||
const image = readFileSync(path.join(process.env.DATA_DIR!, "cards", randomCard.card.path));
|
||||
const imageFileName = randomCard.card.path.split("/").pop()!;
|
||||
|
||||
await interaction.deferReply();
|
||||
|
||||
const attachment = new AttachmentBuilder(image, { name: imageFileName });
|
||||
|
||||
const inventory = await Inventory.FetchOneByCardNumberAndUserId(interaction.user.id, randomCard.card.id);
|
||||
|
|
Loading…
Reference in a new issue