Does .partial then .fetch fix .guild being undefined on a message?
I’m getting a runtime error where a message in a guild has .guild as undefined even though it should exist. From my understanding this is because the guild isn’t in the cache
I’m looking for the best solution to this, currently my plan is to do:
if(message.partial)
{
message = await message.fetch()
}
Does .fetch also fetch the guild and the channel, thread, etc that the message allows you to access on it?
Thanks
I’m looking for the best solution to this, currently my plan is to do:
if(message.partial)
{
message = await message.fetch()
}
Does .fetch also fetch the guild and the channel, thread, etc that the message allows you to access on it?
Thanks