Merge branch 'dev'
commit
3bee8fbd5f
|
@ -157,7 +157,7 @@ export default class Moderation {
|
|||
|
||||
public async unmute(userID: string, moderator: Member, reason?: string): Promise<ModerationInterface> {
|
||||
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');
|
||||
}
|
||||
|
|
|
@ -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<boolean>(`muted-${member.user.id}`);
|
||||
if (search === true) {
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
export { default as CommandHandler } from './CommandHandler';
|
||||
export { default as guildMemberAdd } from './guildMemberAdd';
|
||||
export { default as ready } from './ready';
|
||||
|
|
Loading…
Reference in New Issue