mirror of
https://github.com/litruv/DAdmin.git
synced 2026-07-24 02:36:11 +10:00
Initial commit
This commit is contained in:
20
commands/kick.js
Normal file
20
commands/kick.js
Normal file
@@ -0,0 +1,20 @@
|
||||
exports.name = 'Kick'
|
||||
exports.alias = ['kick']
|
||||
exports.helptext = 'Kicks users from the voice channel'
|
||||
exports.helphide = false
|
||||
exports.permissions = ['MOVE_MEMBERS']
|
||||
exports.args = ['@Tag']
|
||||
exports.category = 'admin'
|
||||
exports.command = (client, msg) => {
|
||||
if (msg.mentions.members.array().length > 0)
|
||||
msg.member.guild.createChannel('Kicked', 'voice')
|
||||
.then(channel => {
|
||||
msg.mentions.members.first().setVoiceChannel(channel.id);
|
||||
c = channel;
|
||||
setTimeout(function () {
|
||||
c.delete()
|
||||
}, 150);
|
||||
})
|
||||
.catch(console.error);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user