$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. 1.
    acronym
  2. 2.
    afkchannelid
  3. 3.
    afktimeout
  4. 4.
    boostcount
  5. 5.
    boostlevel
  6. 6.
    contentfilter
  7. 7.
    count
  8. 8.
    created
  9. 9.
    description
  10. 10.
    emojicount
  11. 11.
    features
  12. 12.
    icon
  13. 13.
    id
  14. 14.
    isavailable
  15. 15.
    isbotremoved
  16. 16.
    ispartnered
  17. 17.
    isverified
  18. 18.
    membercount
  19. 19.
    mfalevel
  20. 20.
    name
  21. 21.
    region
  22. 22.
    ruleschannel
  23. 23.
    systemchannelid
  24. 24.
    timestamp
  25. 25.
    updateschannel
  26. 26.
    vanityurl
  27. 27.
    vanityuses
  28. 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.

Example 1: Fetching guild data with guild ID

bot.Command({
name: "guild",
code: `
$guild[$guildID;timestamp]
`
})

Example 2: Fetching guild data with guild ID

bot.Command({
name: "guild",
code: `
$guild[$message[1];timestamp]
`
})
Copy link