mirror of
https://github.com/litruv/DAdmin.git
synced 2026-07-24 10:46:14 +10:00
cleaned up anagram.js, combined module exports.
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
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);
|
||||
module.exports = {
|
||||
name = "Clear Messages",
|
||||
alias =['clear'],
|
||||
helptext = "Clears messages from the channel",
|
||||
helphide = false,
|
||||
permissions =['VIEW_CHANNEL'],
|
||||
args =['number'],
|
||||
category = 'admin',
|
||||
command = (client, msg) => {
|
||||
console.log("Clearing: " + msg.suffix);
|
||||
msg.channel.bulkDelete(parseInt(msg.suffix) + 1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user