Closed blitzfall closed 6 months ago
It still works because the warning message is just a byproduct of the pagination module been the one to handle the returned ButtonComponent interaction using a message collector that has ZERO relation to Discordx's main client.
Because the pagination module doesn't use Discordx in anyway for handling the ButtonComponent interaction's, Discordx is just acting as if it can't find a handler that matches the ButonComponent's ID and warning you because to you it might be a pretty important thing that it finds a handler.
@TeamWolfyta Thanks for the information. For now, I will add an additional check locally to silence warnings where the customId starts with discordx@pagination
.
@samarmeena Feel free to close if you decide this is the intended behavior for the pagination module's interaction with base discordx.
it is indeed what @TeamWolfyta described.
What happened?
A warning is printed when switching pages using the pagination command,
/all-commands
, in the default option one create-discordx template.This warning does not occur on other buttons and the command still works as expected.
Reproduction
npx create-discordx
to create a new discordx bot by selecting the first option.BOT_TOKEN
npm run watch
Package
@discordx/pagination
Version
Stable
Relevant log output
Code of Conduct