Skip to content

Commit

Permalink
trying new string format for custom_id
Browse files Browse the repository at this point in the history
  • Loading branch information
GenericallyNamed committed Jan 14, 2023
1 parent 61eeadc commit a5dd553
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions commands/casino/games/roshambo.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,31 +64,19 @@ module.exports = {
type: 2,
label: "🪨",
style: 4,
custom_id: (`{
"game_id":${gameId.roshambo},
"playType":"rock",
"betAmount":${betAmount},
"user_id":${user.id}}`),
custom_id: ("{'game_id':" + gameId.roshambo + ",'playType':'rock','betAmount':" + betAmount + ",'user_id':" + user.id + "}"),
},
{
type: 2,
label: "📃",
style: 3,
custom_id: (`{
"game_id":${gameId.roshambo},
"playType":"paper",
"betAmount":${betAmount},
"user_id":${user.id}}`),
custom_id: ("{'game_id':" + gameId.roshambo + ",'playType':'paper','betAmount':" + betAmount + ",'user_id':" + user.id + "}"),
},
{
type: 2,
label: "✂️",
style: 1,
custom_id: (`{
"game_id":${gameId.roshambo},
"playType":"scissors",
"betAmount":${betAmount},
"user_id":${user.id}}`),
custom_id: ("{'game_id':" + gameId.roshambo + ",'playType':'scissors','betAmount':" + betAmount + ",'user_id':" + user.id + "}"),

user: user.id,
},
Expand Down

0 comments on commit a5dd553

Please sign in to comment.