Paginated Message Replies Only to Interactions?
When I use a paginated message from @sapphire/discord.js-utilities with an interaction and call the run method it replies to the original interaction. However when I follow the same process with a message object it does not reply to the original message. I was wondering if this is perhaps an intents issue or the like but having given the bot all intents and scoured the docs I still can't find a solution. Any help would be much appreciated.
2 Replies
This is intended. If you want it to reply to the original message, you'll have to extend the
PaginatedMessage
class. Use the following code:
Note: I directly copied the original function, just changing messageOrInteraction.channel.send
to messageOrInteraction.reply
.
I haven't tested this out, so it might not be typesafe. However, the solution will be something along those lines.
@solaris9ukThat actually works perfectly. Thankyou :)