Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { Client, CommandInteraction } = require("discord.js");
- const { SlashCommandBuilder } = require("@discordjs/builders");
- module.exports = {
- ...new SlashCommandBuilder()
- .setName('info')
- .setDescription(
- 'Displays information regarding the current server or specified user',
- )
- .addSubcommand((subcommand) =>
- subcommand
- .setName('user')
- .setDescription('Displays information regarding the specified user')
- .addUserOption((option) =>
- option.setName('target')
- .setDescription('The user')
- .setRequired(true),
- ),
- )
- .addSubcommand((subcommand) =>
- subcommand
- .setName('member')
- .setDescription('Displays information regarding the specified guild member')
- .addUserOption((option) =>
- option
- .setName('target')
- .setDescription('The member')
- .setRequired(true),
- ),
- )
- .addSubcommand((subcommand) =>
- subcommand
- .setName('server')
- .setDescription('Displays information regarding the current server'),
- ),
- /**
- *
- * @param {Client} bot
- * @param {CommandInteraction} interaction
- * @param {String[]} args
- */
- run: async (bot, interaction, args) => {
- },
- };
Advertisement
Add Comment
Please, Sign In to add comment