Skip to content

$channelPermissionsFor

$channelPermissionsFor will return the channel permissions of a specific user or role.

Usage

$channelPermissionsFor[userOrRoleID?;channelID?;sep?]

Parameters

FieldTypeDescriptionRequired
userOrRoleIDnumberThe user or role ID whose permissions shall be returned.true
channelIDnumberThe channel ID of the channel of which the permissions should be returned of.true
sep?stringThe separator which will be used to separate the permissions, by default ”,“.false

Example(s)

This will return your permissions in the channel where you execute the command:

1
client.command({
2
name: "channelPermissionsFor",
3
code: `
4
$channelPermissionsFor[$authorID;$channelID;, ]
5
`
6
});