Results

The object that the game returns once the game has ended

Results

Once the game has ended, it will send an object containing all the results. This will be useful if you want to create your own win or lose embed.

Example object:

{
    result: "Win",
    method: "You had more",
    ycard: [
        { suit: 'diamonds', rank: 'J', value: 10, emoji: "♦️"}, 
        { suit: 'hearts', rank: '8', value: 8, emoji: "♥️"}
    ],
    dcard: [
        { suit: 'clubs', rank: 'K', value: 10, emoji: "♣️" },
        { suit: 'spades', rank: '7', value: 7, emoji: "♠️" }
    ],
    message: Discord.Message
}

The next chapter will show you some examples on how to use options

Last updated