fix memberupdate
This commit is contained in:
parent
389d8387ee
commit
3ae97b6f66
|
@ -1,7 +1,6 @@
|
||||||
import { Collection, GuildMember } from "discord.js"
|
import { Collection, GuildMember } from "discord.js"
|
||||||
import { filterRolesFromMemberUpdate } from "../helper/roleFilter"
|
import { filterRolesFromMemberUpdate } from "../helper/roleFilter"
|
||||||
import { ChangedRoles, PermissionLevel } from "../interfaces"
|
import { ChangedRoles, PermissionLevel } from "../interfaces"
|
||||||
import ar from "date-fns/locale/ar"
|
|
||||||
import { jellyfinHandler } from "../.."
|
import { jellyfinHandler } from "../.."
|
||||||
|
|
||||||
export const name = 'guildMemberUpdate'
|
export const name = 'guildMemberUpdate'
|
||||||
|
@ -20,11 +19,7 @@ export async function execute(oldMember: GuildMember, newMember: GuildMember) {
|
||||||
if (removedRoleMatches) {
|
if (removedRoleMatches) {
|
||||||
jellyfinHandler.removeUser(newMember)
|
jellyfinHandler.removeUser(newMember)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue