Skip to content

$componentCollector

$componentCollector will create a collector for the given components.

Usage

$componentCollector[messageID;userFilter;time;customIDs;commands;errorMsg?;endcommand?;awaitData?]

Parameters

FieldTypeDescriptionRequired
messageIDnumberThe message ID.true
userFilterstringTo what the bot will reply.
1. everyone
2. specific user ID - any user ID
true
timestringWhen the command ends/expires.true
customIDstringThe component ID.true
commandsstringCommands that will be executed, you can separate multiple emojis with a comma ( “ ).true
errorMsg?stringError message when command expires.false
endcommand?numberEnd command which will be executed when previous commands were executed.false
awaitData?stringAwaited Data.false