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.

true

normalEmbed

boolean

If the bot should send the default embed when playing the game.

true

normalEmbedContent

MessageEmbed or Object

(REQUIRED) The embed content of what the bot should send. This is only required if normalEmbed is set to false

null

buttons

boolean

If the bot should use buttons.

true

transition

string

How you want your game to transition. Only accepts edit and delete

delete

split

boolean

If the game should include split as an option

true

doubledown

boolean

If the game should include double-down as an option

true

Last updated