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

x/oasis/packages/deps.ts>GuildToggles

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

Constructors

new
GuildToggles(guild: DiscordGuild)

Properties

readonly
animatedIcon

Whether the guild has access to set an animated guild icon

readonly
banner

Whether the guild has access to set a guild banner image

readonly
commerce

Whether the guild has access to use commerce features (i.e. create store channels)

readonly
community

Whether the guild can enable welcome screen, Membership Screening, stage channels and discovery, and receives community updates

readonly
discoverable

Whether the guild is able to be discovered in the directory

readonly
discoverableDisabled

Whether the guild cannot be discoverable

readonly
feature

Whether the guild is able to be featured in the directory

readonly
inviteSplash

Whether the guild has access to set an invite splash background

readonly
large

Whether this is considered a large guild

readonly
memberVerificationGateEnabled

Whether the guild has enabled Membership Screening

readonly
monetizationEnabled

Whether the guild has enabled monetization

readonly
moreStickers

Whether the guild has increased custom sticker slots

readonly
news

Whether the guild has access to create news channels

readonly
owner

Whether the bot is the owner of the guild

readonly
partnered

Whether the guild is partnered

readonly
premiumProgressBarEnabled

Whether the guild has the boost progress bar enabled

readonly
previewEnabled

Whether the guild can be previewed before joining via Membership Screening or the directory

readonly
privateThreads

Whether the guild has access to create private threads

readonly
roleIcons

Whether the guild is able to set role icons

readonly
ticketedEventsEnabled

Whether the guild has enabled ticketed events

readonly
unavailable

Whether this guild is unavailable due to an outage

readonly
vanityUrl

Whether the guild has access to set a vanity URL

readonly
verified

Whether the guild is verified

readonly
vipRegions

Whether the guild has access to set 384 kbps bitrate in voice (previously VIP voice servers)

readonly
welcomeScreenEnabled

Whether the guild has enabled the welcome screen

readonly
widgetEnabled

Whether the server widget is enabled

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.