Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oasis/packages/deps.ts>RoleToggles

An object oriented Discordeno framework
Latest
class RoleToggles
Re-export
import { RoleToggles } from "https://deno.land/x/oasis@2.1.0/packages/deps.ts";

Constructors

new
RoleToggles(role: DiscordRole)

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

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.