Skip to content
Discussion options

You must be logged in to vote

You have constructed your components improperly which results in the error you receive:

const joiningRow = new ActionRowBuilder()
  .addComponents([publicJoin, privateRoomCreate, privateRoomJoin, cpu, cancel]);

This method does not take an array. It takes a rest parameter. There are also other issues with your code that the work-in-progress documentation and guide will be able to help you with or feel free to ask in the Discord server.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@waki285
Comment options

Answer selected by almostSouji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #7666 on March 26, 2022 07:57.