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 not in guild that is banned or unbanned from the game throws an error. #89

Open
connorhsm opened this issue May 24, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@connorhsm
Copy link
Member

The ban or unban action still goes through, but Dictator is unable to retrieve the member object, so an error is thrown. The member object is necessary to message the effected user and to log the action in the logging channel.

This whole section needs a good refactor due to high code duplication and becoming generally spaghetti. Recent additions of functionality for life IDs aided in this, but is not perfect.

I'm still not sure about the future of Dictator. It is in a bit of disrepair due to this.

discord_user = ctx.guild.get_member(int(row[1]))

discord_user = ctx.guild.get_member(int(row[1]))

This likely will not be fixed.

@connorhsm connorhsm added the bug Something isn't working label May 24, 2022
@connorhsm connorhsm self-assigned this May 24, 2022
@connorhsm connorhsm changed the title User not in guild that is banned or unbanned from the game the game throws an error. User not in guild that is banned or unbanned from the game throws an error. May 24, 2022
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
Status: Todo
Development

No branches or pull requests

1 participant