diff --git a/src/listeners/buttons.ts b/src/listeners/buttons.ts index b8e46f7..b7ad1cb 100644 --- a/src/listeners/buttons.ts +++ b/src/listeners/buttons.ts @@ -1,6 +1,6 @@ import { ApplyOptions } from '@sapphire/decorators'; import { Listener, ListenerOptions } from '@sapphire/framework'; -import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ComponentType, GuildMember, Interaction, InteractionType } from 'discord.js'; +import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ComponentType, GuildMember, Interaction, InteractionType, MessageActionRowComponentBuilder } from 'discord.js'; import { RolesMessage } from '../lib/types'; @ApplyOptions({ @@ -41,10 +41,10 @@ export class UserEvent extends Listener { // arrays with all the buttons and if the user has them are now in arrayOfArrays, figure out how to get that in a message later:tm: - let rows: ActionRowBuilder[] = []; + let rows: ActionRowBuilder[] = []; for (const roles of arrayOfArrays) { - let row = new ActionRowBuilder(); + let row = new ActionRowBuilder(); for (const role of roles) { row.addComponents( @@ -58,7 +58,7 @@ export class UserEvent extends Listener { rows.push(row); } - await interaction.reply({ content: undefined, components: rows as any, ephemeral: true }); + await interaction.reply({ content: undefined, components: rows, ephemeral: true }); } return;