Closed Barnac1ed closed 1 year ago
Probably a mismatch of djs version. If u r using yarn v3, run yarn dedupe
and it should fix it. Else try uninstalling djs and reinstall
I just tried reinstalling and uninstalling both discord.js and pagination.djs, but i still have the same problem i am not using yarn btw.
Ig i'll just remove the check then as it doesn't do anything.
i just removed the check, and it threw a new error: TypeError [INVALID_TYPE]: Supplied data.type is not a valid MessageComponentType.
Can you run yarn why discord.js
and yarn why pagination.djs
and send the ss here
im not running yarn
then use npm ls discord.js
and npm ls pagination.djs
if u r using pnpm
then run the equivalent command for pnpm
npm ls discord.js returns:
card-bot@1.0.0 C:\Users\Nolan\Documents\card-bot
βββ¬ @voiddevs.org/slashbot@1.1.8
β βββ discord.js@13.11.0
βββ discord.js@14.6.0
βββ¬ pagination.djs@4.0.5
βββ discord.js@14.6.0 deduped
npm ls pagination.djs returns:
card-bot@1.0.0 C:\Users\Nolan\Documents\card-bot
βββ pagination.djs@4.0.5
βββ¬ @voiddevs.org/slashbot@1.1.8
β βββ discord.js@13.11.0
This is causing the issue. It's installing the v13 version of djs and u r using v14 djs. And pagination.djs v4 needs v14 djs
that worked, thanks for all of the help :)
Issue description
When running, it gives me the error
The interaction must be an instance of Interaction or Message
. I console logged interaction, which returrned:Code sample
Package version
βββ @voiddevs.org/slashbot@1.1.8 βββ discord.js@14.6.0 βββ fs@0.0.1-security βββ mongoose@6.7.2 βββ pagination.djs@4.0.5 βββ simple-json-db@2.0.0 βββ sportsdataverse@1.2.3
Node.js version
v18.8.0
Operating system
WIndows
I have tested this issue on a next release
pagination.djs@4.0.5