feat(xp): disable channels can be a vocal
This commit is contained in:
parent
357466a92e
commit
3eab56e368
1 changed files with 4 additions and 0 deletions
|
@ -62,6 +62,10 @@ func OnVoiceUpdate(s *discordgo.Session, e *discordgo.VoiceStateUpdate) {
|
||||||
if e.Member.User.Bot {
|
if e.Member.User.Bot {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
cfg := config.GetGuildConfig(e.GuildID)
|
||||||
|
if cfg.IsDisabled(e.ChannelID) {
|
||||||
|
return
|
||||||
|
}
|
||||||
client, err := getRedisClient()
|
client, err := getRedisClient()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
utils.SendAlert("xp/events.go - Getting redis client", err.Error())
|
utils.SendAlert("xp/events.go - Getting redis client", err.Error())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue