Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/aether/src/structures/guild/Member.ts>default

A Deno library to interface with the Discord API
Latest
class default
extends Base
import { default } from "https://deno.land/x/aether@v0.0.3/src/structures/guild/Member.ts";

Constructors

new
default(
data: any,
guild: Guild,
client: Client,
)

Properties

deaf: boolean

Whether the member is deafened

guild: Guild

Guild of the member

hoistedRole: any

Hoisted role of the member

joinedAt: number | Date

Timestamp of when the member joined the guild

mute: boolean

Whether the member is muted

nick: string

Nick of the member

owner: boolean

If the 'me' is an owner

readonly
permissions: Permission

Getter to get the permissions of the member

premiumSince: string

Timestamp of how long the member has had Nitro

roles: string[]

Array of role IDs the member has

user: User

User of the member

Methods

addRole(roleID: string): Promise<void>

Method to add a role to the user

ban(o?: { reason?: string; deleteMessageDays?:
| 0
| 1
| 2
| 3
| 4
| 5
| 6
| 7
; }
): Promise<void>

Method to ban the user from the guild

kick(): Promise<void>

Method to kick the user from the guild

removeRole(roleID: string): Promise<void>

Method to remove a role from the user