Functionalities
Other
Powered By GitBook
$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
1
bot.Command({
2
name: "server",
3
code: `
4
Rules channel: <#$guildRulesChannel>
5
`
6
})
Copied!
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
1
bot.Command({
2
name: "server",
3
code: `
4
Rules channel: <#$guildRulesChannel[743438202005618747]>
5
`
6
})
Copied!
Last modified 3mo ago
Copy link