#fetching a message from a channel
15 messages · Page 1 of 1 (latest)
<Channel>.messages.edit('id', options);
Thx
If the message not exists any more it can make the bot crash?
I should surrond it with trycatch?
Yes
hey, can you please have a look on my last messages 🙃
Wdym it's not the same ?
Unless you're talking about the channelID-messageID or the threadID-messageID format of the messageID it should not be different.
I am talking about ChannelID-messageID
this is the id of the message above:1119991347093458994
A simple split function can solve that imo.
The messageID will always be the last
Can you please explain me what id it returns on the first code I sent?
And why by doing what I did on the second code does work?
just pass in fetchReply in the reply
InteractionReplyOptions
Options for a reply to a BaseInteraction.