Skip to content

$guildChannels

$guildChannels will return all channels of a specific guild.

Usage

$guildChannels[guildID?;option?;sep?]

Parameters

FieldTypeDescriptionRequired
guildID?numberThe ID of the guild.false
option?stringThe option on how to return the channel
1. name (default)
2. id
3. mention
false
sep?stringSeparator to separate multiple returned values.false

Example(s)

This will return all channels of your guild:

1
client.command({
2
name: "guildChannels",
3
code: `
4
$guildChannels[$guildID;mention;, ]
5
`
6
});