Skip to content

Commit

Permalink
Merge pull request #2 from c0untingNumbers/122-missing-case-for-deny-…
Browse files Browse the repository at this point in the history
…in-member-for-verification-requests

Add case for Deny in Verification Requests
  • Loading branch information
c0untingNumbers authored Jul 13, 2024
2 parents 96af38f + 5632deb commit b245cb9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions commands/slash/member.go
Original file line number Diff line number Diff line change
Expand Up @@ -1111,6 +1111,12 @@ func manualVerification(s *discordgo.Session, i *discordgo.InteractionCreate, us
logging.Error(s, err.Error(), user, span, logrus.Fields{"error": err})
return
}
case "deny":
_, err = s.ChannelMessageSend(memberApprovalChannel, fmt.Sprintf("%v denied %v!", helpers.AtUser(i.Member.User.ID), user.Mention()))
if err != nil {
logging.Error(s, err.Error(), user, span, logrus.Fields{"error": err})
return
}
}

// Delete the initial message and resend the initial message without the buttons
Expand Down

0 comments on commit b245cb9

Please sign in to comment.