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

x/aether/src/structures/guild/Role.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/Role.ts";

Constructors

new
default(
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