Unable to retrieve message using ChannelID and MessageID #1326
Unanswered
Technerder
asked this question in
Q&A
Replies: 1 comment
-
Sorry for a late response. "state not found" or |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Over the last few hours I've been trying to work on a discord bot that needs to be able to retrieve message contents (including reactions) based off of a messages ChannelID and MessageID, but can't seem to be able to do that. The bot program is only able to retrieve messages that were sent after it was started and running. Attempting to retrieve older messages (i.e. before the bot was started, or many hours ago) using the
session.State.Message
function results in astate cache not found
error being returned by the function. I've attached a minimal example that manages to reproduce the problem I'm facing and would love to know what exactly it is that I'm doing wrong.Any and all help is much appreciated!
Bot Invite URL being used: https://discord.com/api/oauth2/authorize?client_id=BOT_ID&permissions=68608&scope=applications.commands%20bot
Reproducible code:
Beta Was this translation helpful? Give feedback.
All reactions