-
In the current implementation of my bot in Node using discord.js I'm able to easily refresh a message that was sent to my bot by using discord.js' Message class' function called "fetch" Is there any equivalent functionality in Discord.NET to refresh the data in a SocketUserMessage? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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 |
Beta Was this translation helpful? Give feedback.
-
Please mark the discussion as answered if I've been able to help you out. |
Beta Was this translation helpful? Give feedback.
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 byMessageCacheSize
in theDiscordSocketConfig