#Rate Limit From GetOrDownloadAsync()

1 messages · Page 1 of 1 (latest)

dire gorge
#

in my ReactionAdded handler this part:

if (await cacheable.GetOrDownloadAsync() is not IUserMessage userMessage)
{
     return;
}
#

never seems to actually cache anything and instead seems to download always. This has caused me to get logs like this:

dire gorge
#

is it possible that a message is getting reacted to so quickly I start GetOrDownloadAsync() 3 times and all of them download because the cache does not get updated until the first one finishes?

analog ruin
#

Yah uhhh
I don't recall exactly, but GETting a message here does not cache one

dire gorge
#

oh

#

why

#

what is even the point of that name then lmao

#

so I need to setup the cache myself?

analog ruin
#

I mean
It does exactly what it says

#

It either gets the message from cache or does a GET

dire gorge
#

I guess I thought since it was on a cacheable it would download to the cache

#

like download seems different than fetch to me