From bb0c56e888a59e771c16070858dae23336fef88d Mon Sep 17 00:00:00 2001 From: SadlyNotSappho Date: Tue, 7 Mar 2023 11:57:43 -0800 Subject: [PATCH] i'm pushing because i have no idea what i changed and ima work on this from a laptop --- src/listeners/buttons.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;