Skip to content

Commit a5abdd2

Browse files
committed
fix(remove): race condition
something interesting is that the latency in dev is high enough that the promise usually resolved in time, but in prod the texture was fetched too quickly
1 parent 4863ec4 commit a5abdd2

3 files changed

Lines changed: 42 additions & 42 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
},
1212
"devDependencies": {
1313
"@eslint/js": "^10.0.1",
14-
"@types/node": "^26.1.2",
15-
"eslint": "^10.8.0",
14+
"@types/node": "^26.2.0",
15+
"eslint": "^10.8.1",
1616
"nodemon": "^3.1.14",
1717
"prettier": "^3.9.6",
1818
"typescript-eslint": "^8.66.0"

pnpm-lock.yaml

Lines changed: 39 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/commands/submission/remove.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default defineCommand({
3838
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
3939
.setDMPermission(false),
4040
async execute(interaction) {
41-
interaction.deferReply();
41+
await interaction.deferReply();
4242
const submissions: PackFile = require("@resources/packs.json");
4343
const choice = interaction.options.getString("pack", true);
4444
const texture = interaction.options.getString("texture", true);

0 commit comments

Comments
 (0)