Remove a specified number of messages from the channel.
Returns:
string | null -- message (as a message to discord text channel); no message sent if successful
Members
-
inner, constant amount :integer
number of messages to remove
-
Methods
-
inner execute(message, args) → {string|null}
-
Parameters:
Name Type Description messagestring command, used to determine which channel to return results
argsstring number of messages to remove (between 1 and 99)
Returns:
string | null -any errors; null on success
-
inner pruneChannel(count) → {string|null}
bulk delete the number of messages requested
-
Parameters:
Name Type Description countinteger how many messages to delete
Returns:
string | null -message if error, otherwise null