class Member
extends SnowflakeBase
import { Member } from "https://deno.land/x/harmony@v2.6.0/src/structures/member.ts";
Constructors
Properties
optional
communicationDisabledUntil: Date | nullguild: Guild
permissions: Permissions
roles: MemberRolesManager
user: User
Methods
avatarURL(format?: ImageFormats, size?: ImageSize): string
ban(reason?: string, deleteOldMessages?: number): Promise<void>
Bans the Member.
disconnectVoice(reason?: string): Promise<Member>
Disconnects a Member from connected VC
edit(data: MemberData, reason?: string): Promise<Member>
Edits the Member
effectiveColor(): Promise<number>
kick(reason?: string): Promise<boolean>
Kicks the member.
manageable(by?: Member): Promise<boolean>
moveVoiceChannel(channel?: string | VoiceChannel | null, reason?: string): Promise<Member>
Moves a Member to another VC
readFromData(data: MemberPayload): void
resetNickname(reason?: string): Promise<Member>
Resets nickname of the Member
resetTimeout(reason?: string): Promise<Member>
Resets Timeout for the Member
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