Options
The additional non-required options that are available

What are Options?

Options are basically parameters that you can pass in when using a package. Discord Blackjack also has options. Some options are required while some may be optional.
Options can be good to allow customizable features such as changing the contents or enabling / disabling a feature. They offer a wide variety of things to choose from

How is Discord Blackjack associated with 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
(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
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 modified 2mo ago