Merge branch 'dev' into 'main'

Dev

See merge request illegitimate/illegitimate-bot!281
This commit is contained in:
2024-09-12 11:10:43 +00:00
2 changed files with 19 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ services:
- HYPIXELAPIKEY=${HYPIXELAPIKEY}
- REDISURI=${REDISURI}
- POSTGRESURI=${POSTGRESURI}
depends_on:
depends_on:
- db
pull_policy: always
db:

View File

@@ -0,0 +1,18 @@
import { VoiceState } from "discord.js"
import { IEvent } from "interfaces"
export default {
name: "updatecache",
description: "Updates the voice states cache",
event: "voiceStateUpdate",
async execute(_o: VoiceState, n: VoiceState) {
const guild = n.guild
if (!guild) return
if (!n.channel) {
guild.voiceStates.cache.delete(n.id)
}
}
} as IEvent