Skip to content

$channelOverwrites

$channelOverwrites will return the given channel’s overwrites.

Usage

$channelOverwrites[channelID?;response?;sep?]

Parameters

FieldTypeDescriptionRequired
channelID?numberID of the channel you want the channel overwrites of.false
response?stringThe format the channel overwrites will be returned in.false
sep?stringThe separator to split the channel overwrites if there are multiple.false
TypeOutput
{mention}Mentions the role or user
{type}Returns the type, user or role
{allow}The granted permissions
{deny}The denied permissions

Example(s)

This will return the channel overwrites of the channel where you execute the command in:

1
client.command({
2
name: "channelOverwrites",
3
code: `
4
$channelOverwrites[$channelID;{mention} {type} {allow} {deny};, ]
5
`
6
});