trying to handle music
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
const { ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js')
|
||||
module.exports = {
|
||||
name: 'interactive',
|
||||
description: 'testing interactive buttons',
|
||||
async execute(message, args) {
|
||||
const row = new ActionRowBuilder()
|
||||
.addComponents(
|
||||
new ButtonBuilder()
|
||||
.setLabel('Test')
|
||||
.setStyle(ButtonStyle.Primary)
|
||||
.setCustomId('test_button_1')
|
||||
)
|
||||
|
||||
await message.reply({ content: 'Here is an interactive button:', components: [row] });
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
module.exports = {
|
||||
name: 'ping',
|
||||
description: 'returns pong!',
|
||||
aliases: [''],
|
||||
async execute(message, args) {
|
||||
message.reply('pong!')
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user