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
embedCustomizableEmbed❌Default EmbedPass a CustomizableEmbed Object to customize the embed
drawColorColorResolvable❌#075FFFColor of the embed when the match is a draw.
winColorColorResolvable❌GREENColor of the embed when someone wins in the match.
opponentUser❌noneThe opponent you're playing with.
buttonsrpsButtons❌Default 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