Skip to content

Commit

Permalink
test(components): add test button
Browse files Browse the repository at this point in the history
  • Loading branch information
jbcarreon123 committed Feb 20, 2024
1 parent 7aa6096 commit fa05ccf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/bot/components/buttons/test-button.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const { ButtonBuilder, ButtonStyle, Interaction } = require("discord.js");
const config = require("../../config.ts");

module.exports = {
button: new ButtonBuilder()
.setLabel("Poke")
.setCustomId("test-button")
.setStyle(ButtonStyle),
async execute(interaction: typeof Interaction) {
await interaction.reply("hello");
},
};

0 comments on commit fa05ccf

Please sign in to comment.