Merge branch 'dev'

pull/29/head
Matthew 2020-07-09 05:04:13 -04:00
commit 3bee8fbd5f
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
3 changed files with 3 additions and 2 deletions

View File

@ -157,7 +157,7 @@ export default class Moderation {
public async unmute(userID: string, moderator: Member, reason?: string): Promise<ModerationInterface> { public async unmute(userID: string, moderator: Member, reason?: string): Promise<ModerationInterface> {
const member = await this.client.getRESTGuildMember(this.client.config.guildID, userID); const member = await this.client.getRESTGuildMember(this.client.config.guildID, userID);
const user = await this.client.getRESTUser(this.client.config.guildID); const user = await this.client.getRESTUser(userID);
if (member) { if (member) {
await member.removeRole('478373942638149643'); await member.removeRole('478373942638149643');
} }

View File

@ -9,7 +9,7 @@ export default class GuildMemberAdd extends Event {
this.event = 'guildMemberAdd'; this.event = 'guildMemberAdd';
} }
public async run(member: Member) { public async run(_, member: Member) {
try { try {
const search = await this.client.db.local.get<boolean>(`muted-${member.user.id}`); const search = await this.client.db.local.get<boolean>(`muted-${member.user.id}`);
if (search === true) { if (search === true) {

View File

@ -1,2 +1,3 @@
export { default as CommandHandler } from './CommandHandler'; export { default as CommandHandler } from './CommandHandler';
export { default as guildMemberAdd } from './guildMemberAdd';
export { default as ready } from './ready'; export { default as ready } from './ready';