#Argument of type 'ButtonStyle.Premium' is not assignable to parameter of type 'ButtonStyle'

1 messages · Page 1 of 1 (latest)

shut spoke
       const row = new ActionRowBuilder<ButtonBuilder>().addComponents(
            new ButtonBuilder().setLabel(ctx.locale("buttons.premium")).setStyle(ButtonStyle.Premium).setSKUId(""),
        );
src/commands/Info/Premium.ts:38:82 - error TS2345: Argument of type 'ButtonStyle.Premium' is not assignable to parameter of type 'ButtonStyle'.

38             new ButtonBuilder().setLabel(ctx.locale("buttons.premium")).setStyle(ButtonStyle.Premium).setSKUId(""),
                                                                                    ~~~~~~~~~~~~~~~~~~~

version: ** "discord.js": "14.16.0-dev.1722730287-f623e7a31",**