mirror of
https://github.com/discordjs/discord.js.git
synced 2026-05-31 08:00:07 +00:00
chore(TeamMember): update permissions comment
This commit is contained in:
@@ -29,6 +29,7 @@ class TeamMember extends Base {
|
||||
this.permissions = data.permissions;
|
||||
} else {
|
||||
// Discord stopped sending this field at some point on or before 2026-04-14.
|
||||
// Later on the same day, Discord started sending it again, which resulted in this code path.
|
||||
this.permissions ??= [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user