#Roles Pagination Error

1 messages · Page 1 of 1 (latest)

noble igloo
wet galleon
#

Is there any error?

jade dirgeBOT
#

The filter for collectors has moved into the options:

- const collector = message.createReactionCollector(filter, { ...options });
+ const collector = message.createReactionCollector({ filter, ...options });
noble igloo
noble igloo
wet galleon
#

You also would want to switch to buttons

drifting wave
#

*is

noble igloo
#

I am

#

i just want to make sure

#

my pagination will still be intact

noble igloo
wet galleon
#

You are doing the thing highlighted in red

noble igloo
wet galleon
#

Line 54

noble igloo
#

try { r = await msg.awaitReactions(filter, { max: 1, time: 60000, errors: ["time"] }) }

drifting wave
#

Change it to the one highlighted in green

noble igloo
drifting wave
#

Same thing for your awaitMessages

noble igloo
noble igloo
#

Could yo uevalusate

#

this is confusing\

drifting wave
#

The filter is the response => message.content

#

You can just omit the filter then

#

awaitMessages({max:1})

noble igloo
#

?

drifting wave
#

Try

noble igloo
#

thanks!

noble igloo
drifting wave
#

You must do that yourself you can check the guide