rps
A classic RPS game, except this time it's on Discord to play with your pals, how cool is that ?
Program
- Javascript
- Typescript
const simplydjs = require("simply-djs");
import simplydjs from "simply-djs";
simplydjs.rps(interaction, {
// options (optional)
})
Output
Arguments:
simplydjs.rps(
interaction: Discord.Message | Discord.CommandInteraction,
options: rpsOptions
)
- interaction
Discord.Message
|Discord.CommandInteraction
- options:
rpsOptions
Options rpsOptions
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
embed | CustomizableEmbed | ❌ | Default Embed | Pass a CustomizableEmbed Object to customize the embed |
drawColor | ColorResolvable | ❌ | #075FFF | Color of the embed when the match is a draw. |
winColor | ColorResolvable | ❌ | GREEN | Color of the embed when someone wins in the match. |
opponent | User | ❌ | none | The opponent you're playing with. |
buttons | rpsButtons | ❌ | Default Buttons | Pass an rpsButtons Object to customize the buttons |
rpsButtons option
rpsButtons
Parameter | Type | Description |
---|---|---|
rock | btnTemplate | Pass an btnTemplate Object to customize the button |
paper | btnTemplate | Pass an btnTemplate Object to customize the button |
scissors | btnTemplate | Pass an btnTemplate Object to customize the button |