Functionalities
Other
$guildID
Returns the current guild's ID or of the supplied guild name.

FUNCTION USAGE

  • $guildID
  • $guildID[]
  • $guildID[guildname]

Properties:

[] - Leave brackets empty to return the guildID of where the command is ran. Same as no brackets. guildname - Supply a guild name to return the guildID of that server.
Bot must be in the guild to read the data!

Example 1: Get the current guild ID

1
bot.Command({
2
name: "guildid",
3
code: `
4
$guildID
5
`
6
})
Copied!

Example 2: Type the name of a guild your bot is in to return the guild ID.

1
bot.Command({
2
name: "guildid",
3
code: `
4
$guildID[DB-Script Official Server]
5
`
6
}) // this will only work if your bot is in our official server and it's not so it wont work for you lol.
Copied!
Last modified 10mo ago
Copy link
Contents
Properties: