Skip to content

DiscordGuildMember

Defined in: bot/bot.type.ts:422

A member of a server. Only what provisioning needs: who they are and which roles they hold.

optional nick?: string | null

Defined in: bot/bot.type.ts:433

The member’s nickname in the server, or null when none is set.


roles: string[]

Defined in: bot/bot.type.ts:431

Ids of the roles the member holds.


optional user?: object

Defined in: bot/bot.type.ts:424

The member’s account; Discord leaves it out in some message contexts.

id: string

The user id.

optional username?: string

The account’s username.