24 lines
946 B
JavaScript
24 lines
946 B
JavaScript
// Command definitions
|
|
const Discord = require("discord.js")
|
|
|
|
module.exports = {
|
|
global: [
|
|
// Use SlashCommandBuilder for command creation
|
|
new Discord.SlashCommandBuilder()
|
|
.setName("report")
|
|
.setDescription("Report a user.")
|
|
.addNumberOption(option => option.setName("roblox_id").setDescription("The Roblox ID of the user you're reporting.").setRequired(true))
|
|
.addStringOption(option => option.setName("reason").setDescription("The reason for the report. (Please be as descriptive as possible)").setRequired(true)),
|
|
],
|
|
admin: [
|
|
new Discord.SlashCommandBuilder()
|
|
.setName("ban")
|
|
.setDescription("Ban a user.")
|
|
.setDefaultMemberPermissions(0),
|
|
new Discord.SlashCommandBuilder()
|
|
.setName("unban")
|
|
.setDescription("Unban a user.")
|
|
.addNumberOption(option => option.setName("roblox_id").setDescription("The Roblox ID of the user you're unbanning.").setRequired(true))
|
|
.setDefaultMemberPermissions(0),
|
|
]
|
|
} |