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

fix(discord): revoke discord leader role on events #411

Merged
merged 1 commit into from
Jan 6, 2024

Conversation

Tomut0
Copy link
Collaborator

@Tomut0 Tomut0 commented Jan 2, 2024

As I see, PlayerKickedClanEvent fires after revoking a leader.
It means the current check won't allow the discord role to be revoked.

I moved the check to the first if, because a linked player cannot be a clan leader.

I hope this resolves #410.

@Tomut0 Tomut0 merged commit 1375679 into RoinujNosde:master Jan 6, 2024
2 checks passed
@Tomut0 Tomut0 deleted the fix/leader-role branch August 16, 2024 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug?] SC won't revoke the discord role it granted
2 participants