discord / discord-api-docs

Official Discord API Documentation
https://discord.com/developers/docs/intro
Other
5.91k stars 1.25k forks source link

Denying `Stream` permission doesn't end screen sharing and webcam streams #7096

Closed RealAlphabet closed 3 weeks ago

RealAlphabet commented 3 weeks ago

Description

My server has over 100,000 members, with more than 500 people active in voice chat at any given time, regardless of the hour. Unfortunately, this has led to a significant issue with bad actors who stream abusive and forbidden content, such as NSFW, terrorism, sexual, copyrighted, and shocking material. Despite being banned, these individuals frequently return on alternate accounts and continue their harmful behavior. When we apply a permission overwrite to deny the Stream permission for these users, their ongoing streams (webcam or screen share) do not automatically stop, allowing them to continue broadcasting inappropriate content. The only way to stop these streams is by using a bot to disconnect or move the member, which is not always feasible given the volume of users and incidents. This situation is increasingly frustrating, as it feels like Discord isn't doing enough to prevent or stop these users from engaging in their abusive activities.

To be more precise, we have a bot that automatically turns off the camera of members who have not interacted much with the community after a report.

Steps to Reproduce

  1. Join a voice channel on your Discord server with another account.
  2. Start a stream by sharing your screen or webcam.
  3. Apply a permission overwrite that denies the "Stream" permission for your alt account currently streaming.

Expected Behavior

When the Stream permission is denied via a permission overwrite, any ongoing streams (screen share or webcam) should immediately and automatically terminate.

Users who lose the Stream permission should not be able to continue streaming, ensuring that the permission overwrite effectively restricts their ability to share content in the voice channel.

Current Behavior

After the Stream permission is denied via a permission overwrite, the ongoing stream (screen share or webcam) does not end. The user continues to stream despite the permission being revoked. To stop the stream, a bot or moderator must manually disconnect the user from the voice channel or move them to another channel.

Screenshots/Videos

No response

Client and System Information

stable 321279 (7e4b8c9) Host 1.0.9159 x64 (51372) Build Override: N/A Windows 11 64-bit (10.0.22631)

Rodentman87 commented 3 weeks ago

The STREAM permission only blocks new actions, which is the same behavior for CONNECT and SPEAK (among other permissions as well). This is working as expected, if you wish to forcibly end the user's stream, you'll need to disconnect or move them like you're currently doing