Browse Source

notifications: get member from cabinet only

ayn2op 9 tháng trước cách đây
mục cha
commit
2a16b37197
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      internal/notifications/notifications.go

+ 1 - 2
internal/notifications/notifications.go

@@ -46,8 +46,7 @@ func HandleIncomingMessage(state *ningen.State, msg *gateway.MessageCreateEvent,
 
 	notifTitle := msg.Author.DisplayOrTag()
 	if guild != nil {
-		member, err := state.Member(channel.GuildID, msg.Author.ID)
-
+		member, err := state.Cabinet.Member(channel.GuildID, msg.Author.ID)
 		if err != nil {
 			return err
 		}