spacebarchat / spacebarchat/server

Leaving a guild does not unsubscribe user from guild events

Open
#1,047 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Module: Gateway Security
Dominant language
TypeScript
Stars
2.2k
Forks
323
Avg merge
14h 48m
Merged PRs (30d)
4

Description

Kicks and bans work as expected, however if a user leaves a guild themselves, they will continue to receive ( all? ) gateway events sent to that guild, such as MESSAGE_CREATE. This only lasts for as long as their gateway connection, as in if the user leaves a guild and then reconnects to gateway, the bug is no longer active.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the guild-leave handling and the gateway event subscription or session state involved when a user leaves. Reproduce the issue with an active gateway connection, then verify that guild events such as MESSAGE_CREATE stop immediately after leaving while reconnect behavior remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.