Skip to content

Commit

Permalink
fix: last game
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDams authored Oct 29, 2023
1 parent bbca516 commit 5271299
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions commands/last.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,10 @@ const sendCardWithInfo = async (
lastSelectorId = 'lastSelector',
pageId = 'pageLast',
maxMatch = null,
game = null
) => {
const map = getInteractionOption(interaction, 'map')
const game = getGameOption(interaction)
game ??= getGameOption(interaction)
maxMatch = getInteractionOption(interaction, 'match_number') ?? maxMatch ?? 25
if (map) mapName = map

Expand Down Expand Up @@ -251,4 +252,4 @@ module.exports = {

module.exports.sendCardWithInfo = sendCardWithInfo
module.exports.getMatchItems = getMatchItems
module.exports.getLastCard = getLastCard
module.exports.getLastCard = getLastCard

0 comments on commit 5271299

Please sign in to comment.