Skip to main content
Module

x/biscuit/mod.ts>Role

A Discord library that is easy to use but reliable on its core 🥠
Latest
class Role
implements Model
Re-export
import { Role } from "https://deno.land/x/biscuit@0.2.4/mod.ts";

Constructors

new
Role(
session: Session,
guildId: Snowflake,
)

Properties

color: number
readonly
createdAt: Date
readonly
createdTimestamp: number
readonly
guildId: Snowflake
readonly
hexColor: string
hoist: boolean
optional
iconHash: bigint
readonly
id: Snowflake
managed: boolean
mentionable: boolean
name: string
permissions: Permissions
readonly
session: Session
optional
unicodeEmoji: string

Methods

add(memberId: Snowflake, reason?: string): Promise<void>
delete(): Promise<void>
edit(options: ModifyGuildRole): Promise<Role>
remove(memberId: Snowflake, reason?: string): Promise<void>
toString(): string