Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User welcome message gets sent twice #219

Open
eiyaxz opened this issue Dec 29, 2023 · 3 comments
Open

User welcome message gets sent twice #219

eiyaxz opened this issue Dec 29, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@eiyaxz
Copy link

eiyaxz commented Dec 29, 2023

Explain the issue.

If you and another person click at the same time in the "Approve verification" button, the welcoming message gets sent twice.

How to recreate?

Click the "Approve" button with another person at the same time.

Anything else?

To fix this I think it's as simple as putting a verification to see if the player already has the role. If they do, just don't do anything or send an ephemeral message saying that they're already verified.

@eiyaxz eiyaxz added the bug Something isn't working label Dec 29, 2023
@joshbker
Copy link
Member

I think this is caused by another bug - #195. Let me know if it's not though.

@eiyaxz
Copy link
Author

eiyaxz commented Dec 30, 2023

Hm, I don't really think it's related to that. It's nothing about the profile URL but instead to the delay between approving and adding the role.

@joshbker
Copy link
Member

Oh right, so it happens on ones where the URL is short enough that it doesn't bug? It just takes enough time normally that if it's pressed near enough the same time it duplicates still?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants