> For the complete documentation index, see [llms.txt](https://discord-blackjack.gitbook.io/discord-blackjack/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://discord-blackjack.gitbook.io/discord-blackjack/results.md).

# 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.

<table data-header-hidden><thead><tr><th>Name</th><th width="150">Datatype</th><th>Description</th></tr></thead><tbody><tr><td>Name</td><td>Datatype</td><td>Description</td></tr><tr><td>result</td><td>String</td><td><p>The result of the game. Type of results:</p><ul><li><code>WIN</code></li><li><code>LOSE</code></li><li><code>TIE</code></li><li><code>DOUBLE WIN</code></li><li><code>DOUBLE LOSE</code></li><li><code>DOUBLE TIE</code></li><li><code>CANCEL</code></li><li><code>TIMEOUT</code></li></ul></td></tr><tr><td>method</td><td>String</td><td><p>Shows how the player won. List of methods:</p><ul><li><code>You had blackjack</code></li><li><code>You had more</code></li><li><code>You busted</code></li><li><code>Dealer had blackjack</code></li><li><code>Dealer had more</code></li><li><code>Dealer busted</code></li><li><code>Tie</code></li><li><code>None</code> (only if it's canceled or timeout)</li></ul></td></tr><tr><td>ycard</td><td>Array&#x3C;Object></td><td>Your cards in objects.</td></tr><tr><td>dcard</td><td>Array&#x3C;Object></td><td>Dealer's cards in objects.</td></tr><tr><td>message (optional)</td><td>Discord.Message</td><td>The message object. This object is only given if <code>options.transition</code> is set to <code>edit</code></td></tr></tbody></table>

## Example object:

{% tabs %}
{% tab title="Console" %}

```javascript
{
    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
}
```

{% endtab %}
{% endtabs %}

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