-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelp.js
More file actions
24 lines (23 loc) · 1.08 KB
/
help.js
File metadata and controls
24 lines (23 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('help')
.setDescription('Show all bot commands'),
async execute(interaction) {
const allowedChannel = '1394020049211228383';
if (interaction.channelId !== allowedChannel) {
await interaction.reply({ content: '<:crossmark:1393755852221190205> This command can only be used in the command channel!', flags: 64 });
return;
}
const guildIcon = interaction.guild?.iconURL() || undefined;
const embed = new EmbedBuilder()
.setTitle('ментай')
.setDescription('[free vbucks](https://www.youtube.com/watch?v=dQw4w9WgXcQ)')
.addFields(
{ name: 'Fing', value: '`/fansign`', inline: true },
{ name: 'test', value: '`/test, /test2`', inline: true },
)
.setFooter({ text: 'ytax', iconURL: guildIcon });
await interaction.reply({ embeds: [embed], flags: 64 });
},
};