$channel
A `Compact Function` with `17` options to choose from.

FUNCTION USAGE

  • $channel[channelID;option]

Properties:

channelID - Define the channel you're calling upon with an ID option - Define the property by its name
Raw position is the position in the server. Top channel starts at 0

Options:

  1. 1.
    created
  2. 2.
    id
  3. 3.
    isdeleted
  4. 4.
    mention
  5. 5.
    name
  6. 6.
    position
  7. 7.
    rawposition
  8. 8.
    topic
  9. 9.
    type
  10. 10.
    timestamp
  11. 11.
    guildid
  12. 12.
    guildname
  13. 13.
    ismanageable
  14. 14.
    parentid
  15. 15.
    parentname
  16. 16.
    isviewable
  17. 17.
    isdeleteable
undefined is returned when the option data cannot be fetched
created
id
isdeleted
mention
name
position
rawposition
topic
type

Returns the date and time at which the channel was created.

Returns the channel ID of the specifed channel

Returns true or false if the channel has been deleted from the guild

  • True - The channel has been deleted or does not exist anymore
  • False - The channel is still active and useable

Returns the channels clickable mention.

Returns the channels name

Returns the channels position organized by categories

ALL positions start counting at 1
  • All text channels outside of a category will be positioned from the top of the server channels list

Returns the channels raw position

ALL positions start counting at 0

Returns the channel topic if one is set

Returns the type of channel

  • dm - a DM channel
  • text - a guild text channel
  • voice - a guild voice channel
  • category - a guild category channel
  • news - a guild news channel
  • store - a guild store channel
  • unknown - a generic channel of unknown type
timestamp
guildid
guildname
ismanageable
parentid
parentname
isviewable
isdeleteable

Returns how long ago the channel was created.

Returns the guild ID associated with that channel.

Returns the guild name associated with that channel.

Returns true if the bot user has permissions to manage that channel. Otherwise the bot will return false.

Returns the parent ID (category) of that channel.

Returns the parent name (category) of that channel.

Returns true if the bot user has permissions to view that channel. Otherwise the bot will return false.

Returns true if the bot user has permissions to delete that channel. Otherwise the bot will return false.

Example 1: Fetching manually defined channel data in the current channel.
1
bot.Command({
2
name: "channel",
3
code: `
4
$channel[$channelID[];$message[1]]
5
`
6
})
Copied!
Example 2: Fetching manually defined channel data in a specific channel with mention, name or ID.
1
bot.Command({
2
name: "channel",
3
code: `
4
$channel[$findChannel[$message[1]];$message[2]]
5
`
6
})
Copied!
Last modified 9mo ago
Copy link