const { SlashCommandBuilder } = require("discord.js");
module.exports = {
cooldown: 5,
data: new SlashCommandBuilder()
.setName("info")
.setDescription("Get info about a user or a server!")
.addSubcommand((subcommand) =>
subcommand
.setName("user")
.setDescription("Info about a user")
.addUserOption((option) =>
option.setName("target").setDescription("The user")
)
)
.addSubcommand((subcommand) =>
subcommand.setName("server").setDescription("Info about the server")
),
async execute(interaction) {
},
};
const { SlashCommandBuilder } = require("discord.js");
module.exports = {
cooldown: 5,
data: new SlashCommandBuilder()
.setName("info")
.setDescription("Get info about a user or a server!")
.addSubcommand((subcommand) =>
subcommand
.setName("user")
.setDescription("Info about a user")
.addUserOption((option) =>
option.setName("target").setDescription("The user")
)
)
.addSubcommand((subcommand) =>
subcommand.setName("server").setDescription("Info about the server")
),
async execute(interaction) {
},
};