const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMessages,
],
});
const BOT_TOKEN = 'almostleakedthetoken’;
const commands = [
{
name: 'review',
description: 'Fetch review information',
options: [
{
name: 'reviewid',
description: 'ID of the review to fetch',
type: 3,
required: true,
},
],
},
{
name: 'userinfo',
description: 'Fetch user information',
options: [
{
name: 'userid',
description: 'ID of the user to fetch',
type: 3,
required: true,
},
],
},
];
(async () => {
await client.login(BOT_TOKEN);
const application = await client.application.fetch();
await application.commands.set(commands);
console.log('Slash commands deployed successfully.');
})();
const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMessages,
],
});
const BOT_TOKEN = 'almostleakedthetoken’;
const commands = [
{
name: 'review',
description: 'Fetch review information',
options: [
{
name: 'reviewid',
description: 'ID of the review to fetch',
type: 3,
required: true,
},
],
},
{
name: 'userinfo',
description: 'Fetch user information',
options: [
{
name: 'userid',
description: 'ID of the user to fetch',
type: 3,
required: true,
},
],
},
];
(async () => {
await client.login(BOT_TOKEN);
const application = await client.application.fetch();
await application.commands.set(commands);
console.log('Slash commands deployed successfully.');
})();