Closed iKingNinja closed 2 years ago
Can’t reproduce with the given intents, are you sure the member data is up to date and that the member is a booster?
Can’t reproduce with the given partials
There are no partials set in the client object.
are you sure the member data is up to date and that the member is a booster?
Yes i am sure the member is a booster because it's me.
I am also not able to reproduce this issue. Looking at your reproducible code sample, it contains code that is not purely discord.js, so I would advise you to do so, just like I did:
import { Client, Constants, Intents } from "discord.js";
const client = new Client({
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MEMBERS
]
});
client.once(Constants.Events.CLIENT_READY, async () => {
const guild = client.guilds.resolve("guild_id");
const { premiumSince, premiumSinceTimestamp } = await guild.members.fetch("user_id");
console.log(premiumSince, premiumSinceTimestamp);
});
client.login("token");
I boost a guild this particular bot is in and the relevant information is returned. By the way, the GUILD_MEMBERS
intent isn't required for this code sample.
If you are still able to reproduce this issue, I would check again to see if you actually are boosting the guild and request this information from the API without discord.js to see if the returned data matches what you already receive. If this is the case, this is not a discord.js issue.
Which package is this bug report for?
discord.js
Issue description
Reading
guildMember.premiumSince
andguildMember.premiumSinceTimestamp
will always return null. I have boosted a server which also reached level 1 so i boosted twice too and those properties are null. There are not much more informations.Code sample
Package version
^13.6.0
Node.js version
v17.5.0
Operating system
Windows
Priority this issue should have
Medium (should be fixed soon)
Which partials do you have configured?
No Partials
Which gateway intents are you subscribing to?
Guilds, GuildMembers
I have tested this issue on a development release
No response