Advertisement
camerond33

bank.js

Jun 1st, 2022
1,030
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const { SlashCommandBuilder } = require('@discordjs/builders');
  2. const { MessageActionRow, MessageButton, MessageEmbed } = require('discord.js');
  3.  
  4. module.exports = {
  5.     data: new SlashCommandBuilder()
  6.         .setName('bank')
  7.         .setDescription('Replies with some buttons!'),
  8.     async execute(interaction) {
  9.         const row = new MessageActionRow()
  10.             .addComponents(
  11.                 new MessageButton()
  12.                     .setCustomId('offensebank')
  13.                     .setLabel('Offense')
  14.                     .setStyle('SUCCESS'),
  15.  
  16.                     new MessageButton()
  17.                     .setCustomId('defensebank')
  18.                     .setLabel('Defense')
  19.                     .setStyle('DANGER'),
  20.             );
  21.  
  22.             const embed = new MessageEmbed()
  23.             .setColor('#0099ff')
  24.             .setTitle('Map: BANK ')
  25.             .setURL('https://discord.js.org')
  26.             .setImage('https://i.imgur.com/s54Riow.jpeg')
  27.             .setDescription('Choose your team shitter');
  28.  
  29.             await interaction.reply({  ephemeral: true, embeds: [embed], components: [row] });
  30.  
  31.     },
  32. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement