$guild
A `Compact Function` that returns information relating to a guild your bot is in with `28` options to choose from.

FUNCTION USAGE

    $guild[guildID;option]

Properties:

guildID - Define a guild with the ID option - Define the property by its name

Options:

    1.
    acronym
    2.
    afkchannelid
    3.
    afktimeout
    4.
    boostcount
    5.
    boostlevel
    6.
    contentfilter
    7.
    count
    8.
    created
    9.
    description
    10.
    emojicount
    11.
    features
    12.
    icon
    13.
    id
    14.
    isavailable
    15.
    isbotremoved
    16.
    ispartnered
    17.
    isverified
    18.
    membercount
    19.
    mfalevel
    20.
    name
    21.
    region
    22.
    ruleschannel
    23.
    systemchannelid
    24.
    timestamp
    25.
    updateschannel
    26.
    vanityurl
    27.
    vanityuses
    28.
    verificationlvl
undefined is returned when the option data cannot be fetched
Option
Details
acronym
Returns the acronym of the guild name.
afkchannelid
Returns the afk channel ID if one is enabled. Bot will return undefined if no afk channel is found.
afktimeout
Returns the afk timeout in seconds if one is enabled. Bot will return undefined if no afk channel is found.
boostcount
Returns the total number of times the guild has been boosted.
boostlevel
Returns the boost level of the guild.
contentfilter
Returns the guilds explicit content filter level.
count
Returns the total number of guilds your bot is in. The first field may be blank when using this option.
created
Returns the date and time the guild was created.
description
Returns the guild description if one is enabled. Mainly for partnered/huge guilds. Returns undefined if no guild description is found.
emojicount
Returns the total number of emojis the guild has.
features
Returns the features of the guild. Returns undefined if the guild does not have any features.
icon
Returns the icon of the guild.
id
Returns the ID of the guild.
isavailable
Returns false if the guild is not available(outage). Otherwise the bot will return true.
isbotremoved
Returns true if the bot cannot find the guild. Happens when the bot is not in the guild anymore.
ispartnered
Returns true if the guild is a Discord partnered guild.
isverified
Returns true if the guild is Discord verified.
membercount
Returns the total number of members in that guild.
mfalevel
Returns the guild's MFA Level.
name
Returns the name of the guild.
region
Returns the region of the guild.
ruleschannel
Returns the rules channel ID of the guild if one is enabled. Otherwise, bot returns undefined.
systemchannelid
Returns the system channel ID of the guild if one is enabled. Otherwise, bot returns undefined.
timestamp
Returns how long ago the guild was created.
updateschannel
Returns the updates channel ID of the guild if one is enabled. Otherwise, bot returns undefined.
vanityurl
Returns the vanity URL of the guild if it has one. Otherwise, bot will return undefined.
vanityuses
Returns the amount of times the vanity URL has been used. Returns undefined if the guild has no vanity URL.
verificationlvl
Returns the verification level of the guild.

Example 1: Fetching guild data with guild ID

1
bot.Command({
2
name: "guild",
3
code: `
4
$guild[$guildID;timestamp]
5
`
6
})
Copied!

Example 2: Fetching guild data with guild ID

1
bot.Command({
2
name: "guild",
3
code: `
4
$guild[$message[1];timestamp]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link