diff --git a/src/class/Moderation.ts b/src/class/Moderation.ts index a22c786..45f1c4e 100644 --- a/src/class/Moderation.ts +++ b/src/class/Moderation.ts @@ -157,7 +157,7 @@ export default class Moderation { public async unmute(userID: string, moderator: Member, reason?: string): Promise { 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) { await member.removeRole('478373942638149643'); } diff --git a/src/events/guildMemberAdd.ts b/src/events/guildMemberAdd.ts index f403204..afc41a0 100644 --- a/src/events/guildMemberAdd.ts +++ b/src/events/guildMemberAdd.ts @@ -9,7 +9,7 @@ export default class GuildMemberAdd extends Event { this.event = 'guildMemberAdd'; } - public async run(member: Member) { + public async run(_, member: Member) { try { const search = await this.client.db.local.get(`muted-${member.user.id}`); if (search === true) { diff --git a/src/events/index.ts b/src/events/index.ts index 4062731..ae21565 100644 --- a/src/events/index.ts +++ b/src/events/index.ts @@ -1,2 +1,3 @@ export { default as CommandHandler } from './CommandHandler'; +export { default as guildMemberAdd } from './guildMemberAdd'; export { default as ready } from './ready';