mirror of
https://github.com/litruv/DAdmin.git
synced 2026-07-24 10:46:14 +10:00
changed over = to :, whoops
This commit is contained in:
@@ -1,20 +1,22 @@
|
||||
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);
|
||||
module.exports = {
|
||||
name: 'Kick',
|
||||
alias: ['kick'],
|
||||
helptext: 'Kicks users from the voice channel',
|
||||
helphide: false,
|
||||
permissions: ['MOVE_MEMBERS'],
|
||||
args: ['@Tag'],
|
||||
category: 'admin',
|
||||
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