Skip to content

$isConsumed

$isConsumed will check if the specified consumable has been consumed.

Usage

$isConsumed[consumableId;userID?]

Parameters

FieldTypeDescriptionRequired
consumableIdnumberYour consumable ID.true
userID?numberThe user ID you want to check.false

Example(s)

This will check if the provided consumableId has been marked as used for this user:

1
client.command({
2
name: "isConsumed",
3
code: `
4
$isConsumed[12345678;$authorID]
5
$comment[Example value of consumableId]
6
`
7
});