Add files via upload
This commit is contained in:
BIN
cdn/PC.gif
Normal file
BIN
cdn/PC.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 128 KiB |
BIN
cdn/contribute.PNG
Normal file
BIN
cdn/contribute.PNG
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
BIN
cdn/idc.mp4
Normal file
BIN
cdn/idc.mp4
Normal file
Binary file not shown.
BIN
cdn/sad.mp4
Normal file
BIN
cdn/sad.mp4
Normal file
Binary file not shown.
13
cdn/twitter/code/kick.js
Normal file
13
cdn/twitter/code/kick.js
Normal file
@ -0,0 +1,13 @@
|
||||
if (message.content.startsWith(`${prefix}kick`)) {
|
||||
if (!message.guild.member(message.author).hasPermission('KICK_MEMBERS')) { return message.channel.send('You do not have permission to kick users!'); }
|
||||
|
||||
if (!message.guild.member(client.user).hasPermission('KICK_MEMBERS')) { return message.channel.send('I don\'t have the permission for kick users!'); }
|
||||
|
||||
if (message.mentions.users.size === 0) { return message.channel.send('You need to mention a user!'); }
|
||||
let kickMember = message.guild.member(message.mentions.users.first());
|
||||
if (!kickMember) { return message.channel.send('User not found!'); }
|
||||
|
||||
kickMember.kick().then((member) => {
|
||||
message.channel.send(member.displayName + " has been successfully kicked from the server.");
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user