mirror of
https://github.com/SrIzan10/vinci.git
synced 2026-06-06 01:07:00 +00:00
43 lines
755 B
Plaintext
43 lines
755 B
Plaintext
[ OneButton ] [ TwoButton ]
|
|
button customId = 'yes' button customId = 'no'
|
|
|
|
|
|
|
|
|
|
collector
|
|
options : {
|
|
max:1
|
|
},
|
|
filter : interaction.isButton() && interaction.customId === 'yes' || interaction.customId === 'no'
|
|
|
|
collect interactions
|
|
if interaction.customId === 'yes'
|
|
this would be yes button
|
|
else
|
|
this would be the no button
|
|
|
|
|
|
|
|
|
|
|
|
if (interaction.customId === 'langChooserSpanish') {
|
|
ctx.reply("spanish")
|
|
}
|
|
else {
|
|
ctx.reply("english")
|
|
}
|
|
|
|
|
|
const got = require('got')
|
|
const { MessageEmbed } = require('discord.js')
|
|
|
|
module.exports = {
|
|
name: 'meme',
|
|
aliases: ['m', 'memes'],
|
|
description: 'Get a random meme from reddit',
|
|
execute(message, args) {
|
|
got(https://srizan.ml).then(res => {
|
|
|
|
});
|
|
}
|
|
} |