question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable Bot to Mute another Member without using the Server Mute

See original GitHub issue

Summary

Bot should be able to “self_mute” or soft mute another user

What is the feature request for?

The core library

The Problem

When a user joins a channel meant for generally quiet time, there is no way to automatically mute them without allowing them to unmute afterward unless they have admin permissions. If there’s a channel that’s meant for more quiet/study times that anyone can join, they can potentially disrupt an ongoing conversation. Utilizing the current mute functionality by the bot is a Server Mute, which would prevent the user from unmuting themselves unless they have proper permissions to do so.

The Ideal Solution

Discord allows server admins and others with the mute permission to mute a user that’s equivalent to a self mute. I’d like for the Member.edit() function to include self_mute/soft_mute and self_deafen/soft_deafen to be new options to facilitate this. This will allow the user to unmute themselves in the normal fashion, which will require a deliberate action on their part, thereby reducing the disruption/interruption on a fresh join.

The Current Solution

There really isn’t one at the moment, save manually muting people. But the reaction time of humans is much slower than that of computers, so it’s basically a moot point.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Rapptzcommented, Mar 23, 2021

You can’t self-mute another member through the API.

If you want to mute them yourself as a moderator movement then there’s Member.edit. If you want to self-mute or self-deafen the bot for whatever reason there’s Guild.change_voice_state.

Anything else is not possible via the API.

0reactions
marpycommented, Mar 23, 2021

Thanks @Rapptz, you’re right that the API doesn’t enable that, I should have checked there first.

The functionality does exist in the client UI, so I thought it was possible via API. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to mute a user on Discord - Android Police
Today's guide illustrates how to mute someone in a voice channel, your direct messages, and inside a server. Let's dig in.
Read more >
Can a discord.py bot mute the voice of others in a voice call?
discord.Member.edit (Documentation): member.Member.edit has the option to set mute to True. This actually sets the member ...
Read more >
How to Mute Someone on Discord so You Can't Hear Them
4. If you have the right permissions — for example, if you're an administrator — you can also select the "Server Mute" option,...
Read more >
zahid47/MuteAll: A discord bot to server mute ... - GitHub
A discord bot to server mute everyone in a voice channel - GitHub - zahid47/MuteAll: A discord bot to server mute everyone in...
Read more >
New feature. Mute for specific person - Discord Support
Hey, i have an idea for discord. Sometimes when i am talking to my friends in group call or on server, i need...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found