APIGuildMember

https://discord.com/developers/docs/resources/guild#guild-member-object

Signature

export interface APIGuildMember

Properties

user: APIUser;

The user this guild member represents **This field won't be included in the member object attached to `MESSAGE_CREATE` and `MESSAGE_UPDATE` gateway events.** See https://discord.com/developers/docs/resources/user#user-object

nick?: string | null;

This users guild nickname

avatar?: string | null;

The member's guild avatar hash

roles: Snowflake[];

Array of role object ids See https://discord.com/developers/docs/topics/permissions#role-object

joined_at: string;

When the user joined the guild

premium_since?: string | null;

When the user started boosting the guild See https://support.discord.com/hc/articles/360028038352

deaf: boolean;

Whether the user is deafened in voice channels

mute: boolean;

Whether the user is muted in voice channels

pending?: boolean;

Whether the user has not yet passed the guild's Membership Screening requirements

@remarksIf this field is not present, it can be assumed as `false`.
communication_disabled_until?: string | null;

Timestamp of when the time out will be removed; until then, they cannot interact with the guild

collectibles?: APICollectibles | null;

The data for the member's collectibles See https://discord.com/developers/docs/resources/user#collectibles

banner?: string | null;

The data for the member's guild banner See https://github.com/discord/discord-api-docs/discussions/4217