Skip to main content
Module

x/aether/mod.ts>Role

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

Constructors

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

Properties

color: number

Hex of the role color

guild: Guild

Guild of the role

hoist: boolean

Whether the role is hoisted

mentionable: boolean

Whether the role is mentionable

name: string

Name of the role

permissions: Permission

Permission of the role

position: number

Numeric position of the role

Methods

delete(): Promise<void>

Method to delete the role

edit(o: RoleOptions): Promise<Role>

Method to edit a role