Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/harmony/src/structures/member.ts>Member

An easy to use Discord API Library for Deno.
Go to Latest
class Member
extends SnowflakeBase
import { Member } from "https://deno.land/x/harmony@v2.6.0/src/structures/member.ts";

Constructors

new
Member(
client: Client,
user: User,
guild: Guild,
perms?: Permissions,
)

Properties

avatar: string | null
optional
communicationDisabledUntil: Date | null
deaf: boolean
readonly
displayName: string
guild: Guild
joinedAt: string
mute: boolean
nick: string | null
permissions: Permissions
optional
premiumSince: string
user: User

Methods

avatarURL(format?: ImageFormats, size?: ImageSize): string
ban(reason?: string, deleteOldMessages?: number): Promise<void>

Bans the Member.

bannable(by?: Member): Promise<boolean>
disconnectVoice(reason?: string): Promise<Member>

Disconnects a Member from connected VC

edit(data: MemberData, reason?: string): Promise<Member>

Edits the Member

effectiveColor(): Promise<number>
fetch(): Promise<Member>

Updates the Member data in cache (and this object).

kick(reason?: string): Promise<boolean>

Kicks the member.

kickable(by?: Member): Promise<boolean>
manageable(by?: Member): Promise<boolean>
moveVoiceChannel(channel?: string | VoiceChannel | null, reason?: string): Promise<Member>

Moves a Member to another VC

resetNickname(reason?: string): Promise<Member>

Resets nickname of the Member

resetTimeout(reason?: string): Promise<Member>

Resets Timeout for the Member

setDeaf(deaf?: boolean, reason?: string): Promise<Member>

Sets a Member deaf in VC

setMute(mute?: boolean, reason?: string): Promise<Member>

Sets a Member mute in VC

setNickname(nick?: string, reason?: string): Promise<Member>

New nickname to set. If empty, nick is reset

setTimeout(expiration?: Date | null, reason?: string): Promise<Member>

Sets Timeout for the Member

toString(): string
undeaf(): Promise<Member>

Undeafs the Member from VC.

unmute(): Promise<Member>

Unmutes the Member from VC.