gistfile1.txt
· 673 B · Text
Raw
cmd.addSubcommand((s) => s
.setName("score-inject")
.setDescription("Inject a score for any player (officer only)")
.addStringOption((o) => o.setName("char_name").setDescription("Character").setRequired(true).setAutocomplete(true))
.addIntegerOption((o) => o.setName("pts").setDescription("Points").setRequired(true))
.addIntegerOption((o) => o.setName("slot").setDescription("TG slot hour").setRequired(true))
.addStringOption((o) => o.setName("date").setDescription("Date YYYY-MM-DD (defaults today)"))
.addIntegerOption((o) => o.setName("k").setDescription("Kills"))
.addIntegerOption((o) => o.setName("d").setDescription("Deaths"))
)
| 1 | cmd.addSubcommand((s) => s |
| 2 | .setName("score-inject") |
| 3 | .setDescription("Inject a score for any player (officer only)") |
| 4 | .addStringOption((o) => o.setName("char_name").setDescription("Character").setRequired(true).setAutocomplete(true)) |
| 5 | .addIntegerOption((o) => o.setName("pts").setDescription("Points").setRequired(true)) |
| 6 | .addIntegerOption((o) => o.setName("slot").setDescription("TG slot hour").setRequired(true)) |
| 7 | .addStringOption((o) => o.setName("date").setDescription("Date YYYY-MM-DD (defaults today)")) |
| 8 | .addIntegerOption((o) => o.setName("k").setDescription("Kills")) |
| 9 | .addIntegerOption((o) => o.setName("d").setDescription("Deaths")) |
| 10 | ) |