Skip to content

Way to refresh or refetch message? #2362

Answered by csmir
Sn0wCrack asked this question in Q&A
Discussion options

You must be logged in to vote

Socket entities do not need to be 'refreshed' because the instance served to you in events sources from cache. Any edits to the entity in this cache from Discord itself will automatically update the cached value internally (through the MessageUpdated event), and will thus already be updated at the moment its requested again. Keep in mind that the length of the message cache is controlled by MessageCacheSize in the DiscordSocketConfig

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Sn0wCrack
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants