import { Listener } from '@sapphire/framework';
export class UserEvent extends Listener {
constructor(context, options = {}) {
super(context, {
...options,
event: 'interactionCreate',
once: false
});
}
async run(interaction) {
if (interaction.isButton()) {
if (interaction.customId === "btn_reg") {
}
}
}
}
import { Listener } from '@sapphire/framework';
export class UserEvent extends Listener {
constructor(context, options = {}) {
super(context, {
...options,
event: 'interactionCreate',
once: false
});
}
async run(interaction) {
if (interaction.isButton()) {
if (interaction.customId === "btn_reg") {
}
}
}
}