$channelPermissionsFor
$channelPermissionsFor will return the channel permissions of a specific user or role.
Usage
$channelPermissionsFor[userOrRoleID?;channelID?;sep?]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| userOrRoleID | number | The user or role ID whose permissions shall be returned. | true |
| channelID | number | The channel ID of the channel of which the permissions should be returned of. | true |
| sep? | string | The 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:
1client.command({2 name: "channelPermissionsFor",3 code: `4 $channelPermissionsFor[$authorID;$channelID;, ]5 `6});