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 message
string command, used to determine which channel to return results
args
string 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 count
integer how many messages to delete
Returns:
string | null -message if error, otherwise null