Updated Discord username validator

This commit is contained in:
2025-03-14 14:54:36 +01:00
parent 4d87654f5a
commit b01a92fd04
3 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ const (
// Verify verifies that the given user has an account on notify.moe.
func Verify(s *discordgo.Session, msg *discordgo.MessageCreate) bool {
discordTag := msg.Author.Username + "#" + msg.Author.Discriminator
discordTag := msg.Author.Username
if msg.Content == "!verify" {
_, err := s.ChannelMessageSend(msg.ChannelID, fmt.Sprintf("To verify your account, first add `%s` as your Discord account on https://notify.moe/settings/accounts, then type `!verify` followed by your username on notify.moe, e.g. `!verify MyName`", discordTag))