Skip to content

$forEachRole

$forEachRole will execute awaited commands for every role in a given guild.

Usage

$forEachRole[guildID;time;awaitData;...awaitedCmds;endCmd?]

Parameters

FieldTypeDescriptionRequired
timestringHow long it takes between each role to execute the next.true
awaitDataobjectAwaited Data.true
…awaitedCmdsstringAwaited Commands to execute.true
endCmd?stringAwaited Command to execute when the loop ends.false