Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { SlashCommandBuilder } = require('@discordjs/builders');
- const { MessageActionRow, MessageButton, MessageEmbed } = require('discord.js');
- module.exports = {
- data: new SlashCommandBuilder()
- .setName('bank')
- .setDescription('Replies with some buttons!'),
- async execute(interaction) {
- const row = new MessageActionRow()
- .addComponents(
- new MessageButton()
- .setCustomId('offensebank')
- .setLabel('Offense')
- .setStyle('SUCCESS'),
- new MessageButton()
- .setCustomId('defensebank')
- .setLabel('Defense')
- .setStyle('DANGER'),
- );
- const embed = new MessageEmbed()
- .setColor('#0099ff')
- .setTitle('Map: BANK ')
- .setURL('https://discord.js.org')
- .setImage('https://i.imgur.com/s54Riow.jpeg')
- .setDescription('Choose your team shitter');
- await interaction.reply({ ephemeral: true, embeds: [embed], components: [row] });
- },
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement