Add send command
This commit is contained in:
parent
423a4095bf
commit
d9f29d8267
1 changed files with 10 additions and 0 deletions
10
commands/admin/send.js
Normal file
10
commands/admin/send.js
Normal 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)
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue