$isGuildVerified
Returns `true` if the guild is verified by Discord. Otherwise the function returns `false`.

FUNCTION USAGE

  • $isGuildVerified
  • $isGuildVerified[]
  • $isGuildVerified[guildID]

Property:

  • [] - Leave brackets empty to return the current guild ID where the command is executed. Same as no brackets.
  • guildID - The guild ID of the server being checked.

Example 1: Getting the current server.

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

Example 2: Using $message[] and $isBotInGuild to check if the bot is in the server and enter a guildID on the fly.

1
bot.Command({
2
name: "check",
3
code: `
4
$isGuildVerified[$message[]]
5
$onlyIf[$isBotInGuild[$message[]]==true;I'm not in that server]
6
`
7
})
Copied!
Last modified 4mo ago
Copy link