Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
class UserToggles
Re-export
import { UserToggles } from "https://deno.land/x/discordeno@13.0.0-rc45/plugins/permissions/deps.ts";

Constructors

new
UserToggles(user: DiscordUser)

Properties

readonly
bot

Whether the user belongs to an OAuth2 application

readonly
mfaEnabled

Whether the user has two factor enabled on their account

readonly
system

Whether the user is an Official Discord System user (part of the urgent message system)

readonly
verified

Whether the email on this account has been verified

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.