Options
The additional non-required options that are available
What are options?
Options allow you to have more control on the aspects of game, and the UI. For example, you want to use your own result embed, instead of us providing it. This shows that you want to disable the resultEmbed, and you can do that by stating false
.
Why options?
Starting from v2 onwards, options will be introduced. It's a feature to customize the features of the game and embeds. Many developers want to create their own embeds because who likes using default ones? Anyway, here you will learn the type of options that Discord Blackjack servers
Types
Options will need an object as a parameter. Inserting anything other than an object will throw an error. The following shows the option object
Object | Data Type | Info | Default |
resultEmbed | boolean | If the bot should send the results of the game in an embed. |
|
normalEmbed | boolean | If the bot should send the default embed when playing the game. |
|
normalEmbedContent | MessageEmbed or Object |
|
|
buttons | boolean | If the bot should use buttons. |
|
transition | string | How you want your game to transition. Only accepts |
|
split | boolean | If the game should include split as an option |
|
doubledown | boolean | If the game should include double-down as an option |
|
Last updated