Skip to content

Commit dfd5558

Browse files
committed
Update cancelMatch.ts
1 parent 2a93f10 commit dfd5558

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/commands/moderation/cancelMatch.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,17 @@ export default {
4141
await COMMAND_HANDLERS.MODERATION.CANCEL_MATCH(matchId)
4242

4343
if (matchCancelCheck) {
44-
await interaction.reply({
45-
content: `Successfully cancelled match ${matchId}`,
46-
})
44+
await interaction
45+
.reply({
46+
content: `Successfully cancelled match ${matchId}`,
47+
})
48+
.catch(() => console.log('Failed to reply'))
4749
} else {
48-
await interaction.reply({
49-
content: `Failed to cancel match ${matchId}.`,
50-
})
50+
await interaction
51+
.reply({
52+
content: `Failed to cancel match ${matchId}.`,
53+
})
54+
.catch(() => console.log('Failed to reply'))
5155
}
5256
} catch (err: any) {
5357
console.error(err)

0 commit comments

Comments
 (0)