Fix duplicate streamWatching, locale guild et console log/error
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 3m43s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 3m43s
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Events } from "discord.js"
|
||||
import type { GuildMember } from "discord.js"
|
||||
import { t } from "@/utils/i18n"
|
||||
import { t, getGuildLocale } from "@/utils/i18n"
|
||||
|
||||
export const name = Events.GuildMemberRemove
|
||||
export function execute(member: GuildMember) {
|
||||
@@ -15,8 +15,9 @@ export function execute(member: GuildMember) {
|
||||
const channel = guild.channels.cache.get("1091140609139560508")
|
||||
if (!channel) return
|
||||
|
||||
await channel.setName(t(guild.preferredLocale, "salonpostam.update.loading"))
|
||||
await channel.setName(t(guild.preferredLocale, "salonpostam.update.members_updated", { count: i.toString() }))
|
||||
const guildLocale = await getGuildLocale(guild.id)
|
||||
await channel.setName(t(guildLocale, "salonpostam.update.loading"))
|
||||
await channel.setName(t(guildLocale, "salonpostam.update.members_updated", { count: i.toString() }))
|
||||
}).catch(console.error)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user