AlexzanderFlores / WOKCommands

132 stars 61 forks source link

error on createMessageComponentCollector; wokcommands v1.5.3 #226

Closed KrevetkaOo closed 2 years ago

KrevetkaOo commented 2 years ago

youtube link tutorial

const collector = channel.createMessageComponentCollector({
    filter: (btnInt: ButtonInteraction) => msgInt.user.id === btnInt.user.id,
    max: 1,
    time: 1000 * 15
})

  Types of parameters 'btnInt' and 'args_0' are incompatible.
    Type 'MessageComponentInteraction<"cached">' is not assignable to type 'ButtonInteraction<CacheType>'.
      Types of property 'component' are incompatible.
        Type 'MessageActionRowComponent' is not assignable to type 'MessageButton | APIButtonComponent'.
          Type 'MessageSelectMenu' is not assignable to type 'MessageButton | APIButtonComponent'.
            Type 'MessageSelectMenu' is missing the following properties from type 'MessageButton': emoji, label, style, url, and 4 more.```
KrevetkaOo commented 2 years ago

https://github.com/AlexzanderFlores/WOKCommands/issues/189#issuecomment-1005187521