Skip to content

Commit 977dbf6

Browse files
committed
fixed off by one error in birthday age
1 parent 7da8dd1 commit 977dbf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

event/command/birthday/handleCheck.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func birthdayAnnounceEmbed(s *discordgo.Session, b []birthdayEntry) (e *discordg
9595
} else {
9696
format := lang.Get(tp+"msg.announce.with_age", lang.FallbackLang())
9797
format += "\n"
98-
fValue += fmt.Sprintf(format, mention, fmt.Sprint(b.Age()+1))
98+
fValue += fmt.Sprintf(format, mention, fmt.Sprint(b.Age()))
9999
}
100100
}
101101

0 commit comments

Comments
 (0)