Module

x/discordeno/plugins/helpers/deps.ts>RoleToggles

Discord API library for Deno
Latest
class RoleToggles
import { RoleToggles } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/helpers/deps.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

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.

import RoleToggles
import { RoleToggles } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/helpers/deps.ts";