fix(notifications): use (*config.Config).Status intead
This commit is contained in:
parent
f594779f08
commit
c48fd4e41d
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ import (
|
|||
|
||||
func HandleIncomingMessage(state *ningen.State, msg *gateway.MessageCreateEvent, cfg *config.Config) error {
|
||||
// Only display notification if enabled and unmuted
|
||||
if !cfg.Notifications.Enabled || state.MessageMentions(&msg.Message) == 0 || cfg.Identify.Status == discord.DoNotDisturbStatus {
|
||||
if !cfg.Notifications.Enabled || state.MessageMentions(&msg.Message) == 0 || cfg.Status == discord.DoNotDisturbStatus {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue