GuildMember
Guild member — roles via GuildMember, permissions via permissions / permissionsIn.
Cached per guild in Guild.
Extends Base
Constructor
(client: Client, data: APIGuildMember & { guild_id?: string }, guild: Guild)| Param | Type | Description |
|---|---|---|
| client | Client | |
| data | APIGuildMember & { guild_id?: string } | |
| guild | Guild |
Properties
: number | nullGuild-specific accent color (24-bit RGB).
: string | nullGuild-specific avatar hash (null = use user avatar).
: Client (readonly)Parent client instance.
: Date | nullTimeout end date (null = not timed out).
: booleanWhether this member is voice-deafened.
: string (readonly): Guild (readonly)The guild this member belongs to.
: string (readonly)User ID (same as `user.id`).
: Date (readonly)When this member joined the guild.
: booleanWhether this member is voice-muted.
: string | nullGuild-specific nickname (null = use global name or username).
: PermissionsBitField (readonly)Guild-level permissions (roles only, no channel overwrites).
: number | nullGuild-specific profile flags.
: GuildMemberRoleManager (readonly)Role manager for this member.
Methods
(options?: { size?: number; extension?: string; }): string | null| Param | Type | Description |
|---|---|---|
| options? | { size?: number; extension?: string; } |
(options?: { size?: number; extension?: string; }): string| Param | Type | Description |
|---|---|---|
| options? | { size?: number; extension?: string; } |
(options: GuildMemberEditOptions): Promise<this>PATCH member (`/members/@me` when editing the bot).
| Param | Type | Description |
|---|---|---|
| options | GuildMemberEditOptions |
(channelId: string | null, connectionId?: string | null): Promise<void>Move to a voice channel, or `null` to disconnect. Requires Move Members.
| Param | Type | Description |
|---|---|---|
| channelId | string | null | Voice channel ID or null to disconnect |
| connectionId? | string | null | Optional connection ID for multi-session scenarios |
(channel: GuildChannel): PermissionsBitFieldEffective permissions in a channel (roles + overwrites).
| Param | Type | Description |
|---|---|---|
| channel | GuildChannel | The guild channel |