v5.0.0
$channelPermissionsFor
This function returns a list of permissions the specified user has for the current or specified channel ID

Fields

This function has 1 required field
  1. 1.
    Channel ID (Optional)
  2. 2.
    User ID (Required)
Raw Usage: $channelPermissionsFor[channelID (optional);userID]

Options

  • Channel ID - The channel the permissions are based off of
  • User ID - The user the permissions are based off of

Usage

Usage without optional field
1
bot.command({
2
name: "channelPermissions",
3
code: `$username's channel perms:
4
$channelPermissionsFor[$authorID]
5
`
6
})
Copied!
Usage with optional field
1
bot.command({
2
name: "channelPermissions",
3
code: `$username's channel perms:
4
$channelPermissionsFor[$findChannel[general];$authorID]
5
`
6
})
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub