mirror of
https://github.com/litruv/DAdmin.git
synced 2026-07-25 03:06:11 +10:00
Initial commit
This commit is contained in:
12
commands/clear.js
Normal file
12
commands/clear.js
Normal file
@@ -0,0 +1,12 @@
|
||||
exports.name = "Clear Messages"
|
||||
exports.alias = ['clear']
|
||||
exports.helptext = "Clears messages from the channel"
|
||||
exports.helphide = false
|
||||
exports.permissions = ['VIEW_CHANNEL']
|
||||
exports.args = ['number']
|
||||
exports.category = 'admin'
|
||||
|
||||
exports.command = (client, msg) => {
|
||||
console.log("Clearing: " + msg.suffix);
|
||||
msg.channel.bulkDelete(parseInt(msg.suffix)+1);
|
||||
}
|
||||
Reference in New Issue
Block a user