Skip to main content

rps

A classic RPS game, except this time it's on Discord to play with your pals, how cool is that ?

Program

const simplydjs = require("simply-djs");
simplydjs.rps(interaction, { 
// options (optional)
})

Output

image

Arguments:

simplydjs.rps(
interaction: Discord.Message | Discord.CommandInteraction,
options: rpsOptions
)

Options rpsOptions

ParameterTypeRequiredDefaultDescription
embedCustomizableEmbedDefault EmbedPass a CustomizableEmbed Object to customize the embed
drawColorColorResolvable#075FFFColor of the embed when the match is a draw.
winColorColorResolvableGREENColor of the embed when someone wins in the match.
opponentUsernoneThe opponent you're playing with.
buttonsrpsButtonsDefault ButtonsPass an rpsButtons Object to customize the buttons

rpsButtons option

rpsButtons

ParameterTypeDescription
rockbtnTemplatePass an btnTemplate Object to customize the button
paperbtnTemplatePass an btnTemplate Object to customize the button
scissorsbtnTemplatePass an btnTemplate Object to customize the button