Minor fix

This commit is contained in:
Eduard Urbach 2019-11-23 16:51:13 +09:00
parent 173a3c996d
commit e50ce4da89
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -36,7 +36,7 @@ func Did(s *discordgo.Session, msg *discordgo.MessageCreate) bool {
userName := matches[1] userName := matches[1]
animeName := matches[2] animeName := matches[2]
user, err := arn.GetUser(userName) user, err := arn.GetUserByNick(userName)
if err != nil { if err != nil {
_, err := s.ChannelMessageSend(msg.ChannelID, "User not found") _, err := s.ChannelMessageSend(msg.ChannelID, "User not found")