Fix edge case where join embed is not generated if invite was single use #305
No reviewers
Labels
No labels
bug
config update
documentation
duplicate
enhancement
in dev
input needed
new feature
not in draft
refactor
waiting on docs update
wont-do
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Sirdog/EnduraBot!305
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "bug/join-log-fail"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A simple little error discovered by #298.
The
Invite to Serveroption in Discord's DM generates a single use invite. Most invites generated last 7 or so days. EnduraBot's code was reliant on the invite existing both before and after the user joined. If this wasn't the case, it would not send an embed and throw the error in the aforementioned issue.This PR addresses that by treating an invite existing in the past, but no longer existing after a user joins, as it being a successful match to the incoming user.
Closes #298