You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please describe the problem you are having in as much detail as possible:
The .parentID property of a category is sometimes undefined, but it should always be null.
I tested in all guilds my bot was in and I was surprised to see a mixture of undefined and null values.
Include a reproducible code sample here, if possible:
constclient=new(require("discord.js").Client)();client.on("ready",()=>{constresults=[];client.guilds.cache.forEach(({channels: { cache }})=>{results.push(cache.filter(({ type })=>type==="category").map(({ parentID })=>parentID));});console.log(results);});client.login("token");
Please describe the problem you are having in as much detail as possible:
The
.parentID
property of a category is sometimesundefined
, but it should always benull
.I tested in all guilds my bot was in and I was surprised to see a mixture of
undefined
andnull
values.Include a reproducible code sample here, if possible:
results
resulted as:Further details:
Relevant client options: N/A
The text was updated successfully, but these errors were encountered: