Merge branch 'dev'

pull/29/head
Matthew 2020-07-22 03:15:55 -04:00
commit 46510ee470
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
2 changed files with 10 additions and 1 deletions

View File

@ -26,7 +26,7 @@ export default class Kick extends Command {
if (user && !this.client.util.moderation.checkPermissions(user, message.member)) return this.error(message.channel, 'Permission Denied.'); if (user && !this.client.util.moderation.checkPermissions(user, message.member)) return this.error(message.channel, 'Permission Denied.');
message.delete(); message.delete();
const reason: string = args[1]; const reason: string = args.slice(1).join(' ');
if (reason.length > 512) return this.error(message.channel, 'Kick reasons cannot be longer than 512 characters.'); if (reason.length > 512) return this.error(message.channel, 'Kick reasons cannot be longer than 512 characters.');
await this.client.util.moderation.kick(user, message.member, reason); await this.client.util.moderation.kick(user, message.member, reason);
return this.success(message.channel, `${user.username}#${user.id} has been kicked.`); return this.success(message.channel, `${user.username}#${user.id} has been kicked.`);

View File

@ -133,6 +133,15 @@
"github": "https://github.com/sterben6", "github": "https://github.com/sterben6",
"bio": "im bored" "bio": "im bored"
}, },
{
"name": "Raymond",
"id": "314564798992089090",
"dept": "Associate",
"emailAddress": "smashjarchive@staff.libraryofcode.org",
"gitlab": "https://gitlab.libraryofcode.org/javaarchive",
"github": "https://github.com/javaarchive",
"bio": "I don't like reinventing the wheel and don't like coding on small screens like laptops as much"
},
{ {
"name": "Null", "name": "Null",
"id": "323673862971588609", "id": "323673862971588609",