Add send command

This commit is contained in:
SileNce5k 2021-08-06 19:04:26 +02:00
parent 423a4095bf
commit d9f29d8267
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

10
commands/admin/send.js Normal file
View file

@ -0,0 +1,10 @@
module.exports = {
name: 'send',
description: 'Send a message to a specific channel',
execute({client, args}){
let channel = args[0];
let message = args.slice(1, args.length)
message = message.join(" ")
client.channels.cache.get(channel).send(message)
}
}