Fetch a message by using the url
I know we can get a message with channel and message ID, but maybe it exists a methods to get from url directly, instead of parsing the URL (like regex) and get channel and after the message ?
(It's a general question but in case of :
-
discord.js
: [email protected]
- node
: v18.18.0
)5 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!Yeah, but here is a function to get the message from the URL ?
For the moment, I use like:
I want to know if there is a better "direct" methods (without using cache)
should like this !
Well, im always afraid to don't found channel and I spotted sometimes the error "channel not found"