Skip to content

Commit

Permalink
Tweak error message for trying to undo opponent's move
Browse files Browse the repository at this point in the history
  • Loading branch information
gruppler committed Jun 30, 2024
1 parent 83373b5 commit 780c6a4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions commands/undo.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ module.exports = {
}

if (!isPlayer(interaction.member.id, gameData)) {
return sendMessage(
interaction,
"This isn't your game.",
true
);
return sendMessage(interaction, "This isn't your game.", true);
}

if (
Expand All @@ -51,7 +47,7 @@ module.exports = {
) {
return sendMessage(
interaction,
"You cannot undo a move that is not your own.",
"You cannot undo your opponent's move.",
true
);
}
Expand Down

0 comments on commit 780c6a4

Please sign in to comment.