Functionalities
Other
Powered By GitBook
$guildUpdatesChannel
Returns the updates channel ID of the current guild or specific guild ID (If no updates channel is found, bot will return `undefined`)

FUNCTION USAGE

    $guildUpdatesChannel
    $guildUpdatesChannel[]
    $guildUpdatesChannel[guildID]

Properties:

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