Skip to content

feat(moderation): send ban and kick reasons to clients - #49

Open
tintinhamans wants to merge 1 commit into
GeneralsOnlineDevelopmentTeam:mainfrom
tintinhamans:arctic/feature/ban-kick-reasons
Open

feat(moderation): send ban and kick reasons to clients#49
tintinhamans wants to merge 1 commit into
GeneralsOnlineDevelopmentTeam:mainfrom
tintinhamans:arctic/feature/ban-kick-reasons

Conversation

@tintinhamans

Copy link
Copy Markdown
Contributor
  • Adds WebSocket message 46 containing the moderation action and reason.
  • Sends the message before disconnecting active sessions.
  • Supports !kick <user_id> [reason] in the Discord bot.
  • Returns ban_reason with 423 Locked responses.
  • Keeps invalid authentication responses as 401 without exposing ban details.
  • Detects direct database bans within five seconds.
  • Revokes all tokens when banning - kicks only disconnect the user.
  • Preserves the last known ban state if database reconciliation fails.

Older clients ignore message 46 and retain the generic disconnect behavior.

Updated clients can display ban reasons during login or token refresh. They also handle WebSocket message 46 to show reasons for live bans and kicks. (GeneralsOnlineDevelopmentTeam/GameClient#571)

Signed-off-by: tintinhamans <5984296+tintinhamans@users.noreply.github.com>
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