new Member
src/structures/member.ts:102new Member(client: ShardClient, data?: BaseStructureData, isClone?: boolean)Guild Member Structure
import { Structures } from 'detritus-client';
Structures.Member;new Member(client: ShardClient, data?: BaseStructureData, isClone?: boolean)The highest role that's displayed separately in the member list worked out from the guild's current roles when read (discord only sends hoisted_role to user accounts) so it doesn't go stale when roles get moved or edited, and merging stays cheap
_getFromSnake(key: string): any_setFromSnake(key: string, value: any): any[custom](): objectadd(): Promise<any>addRole(roleId: string, options?: AddGuildMemberRole): Promise<any>ban(options?: CreateGuildBan): Promise<any>block(): Promise<any>can(
permissions: PermissionChecks,
options?: { ignoreAdministrator?: boolean; ignoreOwner?: boolean },
): booleancanEdit(member: Member): booleancanEditRole(roleId: string | Role): booleanclone(): thiscreateDm(): Promise<ChannelDM | ChannelDMGroup>createMessage(options?: string | CreateMessage): Promise<Message>createOrGetDm(): Promise<Channel>deleteRelationship(): Promise<any>difference(key: string, value: any): [boolean, any]differences(data?: BaseStructureData): object | nulldifferencesBetween(structure: Structure): object | nulledit(options?: EditGuildMember): Promise<Member>editNick(nick: string, options?: EditGuildNick): Promise<any>editNote(note: string): Promise<any>editRelationship(type: number): Promise<any>editVoiceState(options: EditGuildVoiceState): Promise<any>fetchProfile(): Promise<Profile>hasDifference(key: string, value: any): booleanhasDifferences(data?: BaseStructureData): booleanhasDifferencesBetween(structure: Structure): booleanhasFlag(flag: number): booleanhasPublicFlag(flag: number): booleanmerge(data?: BaseStructureData): voidmergeValue(key: string, value: any): voidmove(channelId: string | null, options?: EditGuildMember): Promise<Member>permissionsIn(channelOrId: string | Channel, startingPermissions?: bigint): bigintremove(options?: RemoveGuildMember): Promise<any>removeBan(options?: RemoveGuildBan): Promise<any>removeRole(roleId: string, options?: RemoveGuildMemberRole): Promise<any>setDeaf(deaf: boolean, options?: EditGuildMember): Promise<Member>setMute(mute: boolean, options?: EditGuildMember): Promise<Member>toJSON(withRoles?: boolean): anyunadd(): Promise<any>unblock(): Promise<any>