Skip to main content
Module

x/revoltio/mod.ts>Role

No-nonsense Revolt library for nodejs and deno.
Latest
class Role
extends Base
Re-export
import { Role } from "https://deno.land/x/revoltio@v1.0.0/mod.ts";

Constructors

new
Role(server: Server, data: API.Role & { id: string; })

Properties

color: string | null
readonly
createdAt: Date
readonly
createdTimestamp: number
hoist: boolean
name: string
overwrite: Overwrite
readonly
permissions: Overwrite
rank: number

Methods

protected
_patch(data: API.Role & { _id?: string; }, clear?: API.FieldsRole[]): this
delete(): Promise<void>
toString(): string