PaginatedMessage replies "This maze wasn't meant for you...what did you do."
i put the example for paginated messages in my slash command, but instead of sending a paginated message, it only replied with the above error message and logged a warning
after following the advice of the warning by adding the
CHANNEL
s partial, it still replied with the same message, but without logging a warning52 Replies
this is the relevant code
this is the original warning
however, the command was sent in a guild and not in a dm
my dependencies are also up to date
please share your package.json
sure
just the discord dependencies?
just share the whole thing tbh
oke
when asking for technical support it's much better to provide too much than too litle info
we also have:
When asking for help, make sure to provide as much detail as possible. What have you tried so far? Do you have stacktraces that you can show us? What are you trying to achieve? Try to answer these questions and others, so we do not have to ask for them afterwards.
āÆ For a good guide on how to ask questions, see the instructions that StackOverflow gives. You should try to always follow these guidelines. āÆ For an excellent video that shows how not to ask technical questions is this, watch this YouTube video by LiveOverflow. āÆ Asking technical questions (Clarkson) āÆ How to ask questions the smart way (Raymond)
aight
sorry for all the trashy configs š
uhm... that means you're pulling in
@sapphire/discord.js-utilities
as a transitive dependency. Can you run npm ls @sapphire/discord.js-utilities --depth=0
and show the result?uh
drop the --depth=0?
okay 7.0.2 is latest
yup
i really wonder why it thought that i was running it in a dm channel
oh btw my bot only has
application.command
enabled and not bot
that had lead to some bugs before but shouldnt matter hereim stumped tbh. The maze is not meant for you error is supposed to be a fallback error if something seriously goes wrong and normally that's dependencies related
i really messed up here š
I'm pretty sure DiscordJS needs the bot scope ... :\ @vladdy @kyra š©µš©·š¤š©·š©µ ?
pretty sure only HTTP only bots can use only
application.command
djs needs the bot scope, yes
well definitely add that then
that would definitely cause unexpected errors
oh ok
holy shit someone actually triggered the maze error
thats
a shock
amazing
ping command worked with only
application.command
so i thought it would be fineyou're second person sorry bricked lmao
was about to say
nah
Fabrizio Santana
was the first
silver trophy to yayey
uhh
does it need any other permissions
the client clearly has
bot
permissions nowit would be nice if the reply would also log a warning
https://discord.com/oauth2/authorize?client_id=<client_id_here>&permissions=412317240320&scope=applications.commands%20bot
that's what @Dragonite has
you can put a breakpoint in the JS code in node_modules at the start of the run method and use a debugger to walk through the code to see where it errors
afaik we cannot pull the current stack in JS for logging so there wouldn't be anything useful to log
oke
permissions didnt change anything
ill try to trace the error
the break point on
myPaginatedMessage.run(inter)
isnt even reached when i execute the command
but it stops before the bot connects for some reason
oh so apparently inter.channel
is null
ĀÆ\_(ć)_/ĀÆ
inter.channelId
is defined tho
but it told me to activate partial channels so that's expected i guessThere are 3 places where the maze message can pop up:
1. at
.run
if there is no message.channel
2. at handleCollect
(when you click a button etc) and it's the initial reply, it should be an edit here
3. same as 2 but at handleEnd
so you're in situation 1
what is your new SapphireClient
, specifically all your client options?the callstack is
so i guess its 1.
client is
I'd need the stack above
safelyReplyToInteraction
. They all call that function.
you need intents
minimumoh
right
but if you want DM you want more
sec
boss spawned
guh
oh it works now š
once again it was missing intents
for DM commands I think it's
I assume you want DM commands otherwise there is no reason to enable channels partial
sure
tysm
i didnt know that was required for slash commands
oh wait
it's not come to think of it
just Guilds is
@Dragonite only has Guilds and DM commands work fine
my bad
yup
its weird how normal replies worked but the paginator didnt
ill mark this as completed i guess
it's due to this
if
check: https://github.com/sapphiredev/utilities/blob/ec46196ac1aaeb7fdb06bde397e3f8b48686d496/packages/discord.js-utilities/src/lib/PaginatedMessages/PaginatedMessage.ts#L962
we need the channel to set up the interaction collectoroh ok
well I guess there might be a way to refactor it to not need it but then it would only work in DMs
i havent even tried it in dms
it might work anyways cuz there is no dm intent
for guilds we need it channel for the channel filter of the collector: https://github.com/sapphiredev/utilities/blob/ec46196ac1aaeb7fdb06bde397e3f8b48686d496/packages/discord.js-utilities/src/lib/PaginatedMessages/PaginatedMessage.ts#L1199-L1201