docsFunctionsPermissionsZonlyBotChannelPerms

ZonlyBotChannelPerms

Halts execution unless the bot has all of the specified permissions in the given channel.

Syntax

ZonlyBotChannelPerms{channelID;permission;...;errorMessage?}

Arguments

NameTypeRequiredDefault
channelIDsnowflakeYes-
permissionpermissionYes-
errorMessagestringNoThe bot does not have the required channel permissions.

Example

ZonlyBotChannelPerms{123456789012345678;sendMessages;embedLinks}