Functionalities
Functions
Data
Other
$guildRulesChannel
Returns the rules channel ID of the current guild or specific guild ID (If no rules channel is found, bot will return `undefined`).

FUNCTION USAGE

  • $guildRulesChannel
  • $guildRulesChannel[]
  • $guildRulesChannel[guildID]

Properties:

[] - Leave brackets empty to return the rules channel of the current guild. Same as no brackets. guildID - Supplying a specific guild ID will get the rules channel of that guild.
Bot must be in the guild you are checking to read that data!
Example 1: Returns the rules channel of this guild. Bot will return "undefined" if no rules channel is found
bot.Command({
name: "server",
code: `
Rules channel: <#$guildRulesChannel>
`
})
Example 2: Returns the rules channel of the provided guild ID. Bot must be in the guild of the provided guild ID. Bot will return "undefined" if no rules channel is found
bot.Command({
name: "server",
code: `
Rules channel: <#$guildRulesChannel[743438202005618747]>
`
})
Copy link
Outline