소스 검색

notifications: get member from cabinet only

ayn2op 9 달 전
부모
커밋
2a16b37197
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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
 		}