v5.0.0
$channel
This function returns the specified channel's given property

Usage

This function has 2 fields
  1. 1.
    Channel ID (Required)
  2. 2.
    Property (Required)
Raw Usage: $channel[channelIID;property]

Options

  • Channel ID - The channel you want to get the properties from
  • Property - The property you want to get from the <channel>

Available Properties

  • name - Channel's Name
  • topic - Channel's Topic
  • ID - Channel's ID
  • position - Channel's position organized by categories
  • rawposition - Channel's position
  • mention - Mention's the Channel
  • created - Channel's date and time of creation
  • isdeleted - Whether or not the channel has been deleted from the current guild, Returns Boolean
  • type - Channel's Type - text, voice, category
  • timestamp - How long ago the channel was created
  • guildid - Channel's home guild's id
  • guildname - Channel's home guild's name
  • ismanageable - Whether or not the the author of the command has permission to manage the channel, Returns Boolean
  • parentid - Channel's category's id
  • parentname - Channel's category's name
  • isviewable - Wehther or not the author of the command can view the channel, Returns Boolean
  • isdeleteable - Whether or not the author of the command can delete the channel, Returns Boolean
1
bot.command({
2
name: "channel",
3
code: `
4
$channel[$channelID;name]
5
`
6
})
7
​
8
//or if you want the mentioned channel
9
​
10
bot.command({
11
name: "channel",
12
code: `
13
$channel[$mentionedChannels[1];name]
14
`
15
})
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub