-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.js
26 lines (25 loc) · 1.01 KB
/
commands.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const { SlashCommandBuilder } = require('@discordjs/builders');
module.exports = [
new SlashCommandBuilder()
.setName("get")
.setDescription("Retrieve the stats of a reddit user for r/place 2022")
.addStringOption(option =>
option.setName("user")
.setDescription("The reddit username of the user")
.setRequired(true))
.addBooleanOption(option =>
option.setName("trophies")
.setDescription("Set this to false to load results faster, but without trophies.")
.setRequired(true)),
new SlashCommandBuilder()
.setName("getjson")
.setDescription("Get the stats sent to you via dms as json - ONLY works for users with direct messages enabled!")
.addStringOption(option =>
option.setName("user")
.setDescription("The reddit username of the user")
.setRequired(true))
.addBooleanOption(option =>
option.setName("trophies")
.setDescription("Set this to false to load results faster, but without trophies.")
.setRequired(true))
]