Skip to content

Commit

Permalink
fix(core): datestats new user interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDams committed May 21, 2024
1 parent bfd7773 commit c4f3a4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion interactions/buttons/uDSG.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = {
CommandsStats.create(commandName, `button - ${json.type.name}`, interaction)

let components = interaction.message.components
const defaultOption = components.at(0).components.at(0).options.findIndex(option => option.default)

getCardByUserType(newUser, interaction)

Expand All @@ -26,7 +27,8 @@ module.exports = {
{ param: json.playerId, faceitId: true },
json.currentPage,
json.game,
json.type
json.type,
defaultOption
)
}

Expand Down

0 comments on commit c4f3a4e

Please sign in to comment.