Functionalities
Other
$findCategory
Returns the category ID of the category name you supply. Accepts ID's as well. If 2nd field is defined as `name`, function returns the category's name instead.

FUNCTION USAGE

  • $findCategory[category]
  • $findCategory[category;name]

Properties:

name/ID - Define a category name or ID from the current server to return it's ID. name - Type the word name in the 2nd field to return the category name instead of the ID.

Example 1: Getting a category ID

1
bot.Command({
2
name: "category",
3
code: `
4
Category ID - $findCategory[$message[]]
5
`})
Copied!

Example 2: Getting a category name.

1
bot.Command({
2
name: "category",
3
code: `
4
Category ID - $findCategory[$message[];name]
5
`})
Copied!
Last modified 5mo ago
Copy link
Contents
Properties: