Skip to main content
Module

x/discordeno/mod.ts>RoleToggles

Discord API library for Deno
Latest
class RoleToggles
extends ToggleBitfield
Re-export
import { RoleToggles } from "https://deno.land/x/discordeno@18.0.1/mod.ts";

Constructors

new
RoleToggles(roleOrTogglesInt: DiscordRole | number)

Properties

readonly
hoist

If this role is showed separately in the user listing

readonly
managed

Whether this role is managed by an integration

readonly
mentionable

Whether this role is mentionable

readonly
premiumSubscriber

Whether this is the guilds premium subscriber role

Methods

has(permissions: RoleToggleKeys | RoleToggleKeys[])

Checks whether or not the permissions exist in this

Lists all the toggles for the role and whether or not each is true or false.