Skip to content

Defined in: zaun/js/index.d.ts:776

new Member(): Member

Member

readonly botId: string

Defined in: zaun/js/index.d.ts:796

The bot this member is, if it is one.


readonly client: Client

Defined in: zaun/js/index.d.ts:777


readonly community: Community

Defined in: zaun/js/index.d.ts:778


readonly data: any

Defined in: zaun/js/index.d.ts:793


readonly displayName: string

Defined in: zaun/js/index.d.ts:782


readonly id: string

Defined in: zaun/js/index.d.ts:779


readonly isBot: boolean

Defined in: zaun/js/index.d.ts:797


readonly isMe: boolean

Defined in: zaun/js/index.d.ts:791


readonly isTimedOut: boolean

Defined in: zaun/js/index.d.ts:785


readonly joinedAt: Date

Defined in: zaun/js/index.d.ts:783


readonly partial: boolean

Defined in: zaun/js/index.d.ts:781

The cache does not have this member yet (community.members.fetch()).


readonly presence: Presence

Defined in: zaun/js/index.d.ts:787

presence: status and activity (offline when unknown).


readonly roles: Collection<string, Role> & object

Defined in: zaun/js/index.d.ts:792

add(role): Promise<void>

string | Role

Promise<void>

remove(role): Promise<void>

string | Role

Promise<void>


readonly statusEmoji: string

Defined in: zaun/js/index.d.ts:790


readonly statusText: string

Defined in: zaun/js/index.d.ts:789

Custom status text and emoji, if set.


readonly timedOutUntil: Date

Defined in: zaun/js/index.d.ts:784

ban(reason?): Promise<void>

Defined in: zaun/js/index.d.ts:801

string

Promise<void>


canUse(command, channel?): boolean

Defined in: zaun/js/index.d.ts:799

Whether this member may use bot command in channel, as the cache sees it.

ApplicationCommandData

string | Channel

boolean


dm(): Promise<Channel>

Defined in: zaun/js/index.d.ts:809

DM: the direct message with this member, opened if needed. Rejects with FORBIDDEN (dms_closed) or RATE_LIMITED (dms).

Promise<Channel>


fingerprint(): string

Defined in: zaun/js/index.d.ts:804

string


kick(reason?): Promise<void>

Defined in: zaun/js/index.d.ts:800

string

Promise<void>


mention(): string

Defined in: zaun/js/index.d.ts:806

<@id>: the text that shows a mention of this member.

string


permissions(channel?): Permissions

Defined in: zaun/js/index.d.ts:794

string | Channel

Permissions


send(options): Promise<Message>

Defined in: zaun/js/index.d.ts:811

DM: sends this member a direct message.

MessageOptions

Promise<Message>


timeout(ms, reason?): Promise<void>

Defined in: zaun/js/index.d.ts:803

For ms milliseconds; null lifts it.

number

string

Promise<void>