Skip to content

fix: forget unbanned rejoin - #494

Merged
Akinator31 merged 2 commits into
mainfrom
feat/forget-unbanned-rejoin
Oct 14, 2026
Merged

Akinator31 merged 2 commits into
mainfrom
feat/forget-unbanned-rejoin

Conversation

@Akinator31

Copy link
Copy Markdown
Member

This pull request introduces functionality to remove a user from the banned users database table when they rejoin a guild. The main changes add a new database operation and integrate it into the guild member event handler.

Database operations:

  • Added a new async function delete_banned_user to banned_users.rs that deletes a banned user record from the banned_users table given a guild_id and user_id.

Event handling:

  • Updated the GuildBanHandler to call delete_banned_user when a previously banned user rejoins a guild, and log an error if the deletion fails.

@Akinator31 Akinator31 self-assigned this Oct 14, 2026
@Akinator31
Akinator31 merged commit 23ce2e5 into main Oct 14, 2026
2 checks passed
@Akinator31
Akinator31 deleted the feat/forget-unbanned-rejoin branch October 14, 2026 14:10
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.

1 participant