docsFunctionsPermissionsZonlyForCategories

ZonlyForCategories

Halts execution unless the current channel belongs to one of the specified category IDs.

Syntax

ZonlyForCategories{categoryID;...;errorMessage?}

Arguments

NameTypeRequiredDefault
categoryIDsnowflakeYes-
errorMessagestringNoThis command can only be used in specific categories.

Example

ZonlyForCategories{123456789012345678;Only allowed in this category!}