[Mutes] Wrong error message when muting fails (#4850)

* [Mutes] Wrong error message when muting fails

* This applies to both mute and unmuting of members.

Co-authored-by: Kowlin <Kowlin@users.noreply.github.com>
This commit is contained in:
Ellie Saurich 2021-02-26 09:22:04 +01:00 committed by GitHub
parent 649b4ebb15
commit dfe84f9936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1162,7 +1162,7 @@ class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
reasons = {} reasons = {}
reason_msg = issue_list["reason"] + "\n" if issue_list["reason"] else None reason_msg = issue_list["reason"] + "\n" if issue_list["reason"] else None
channel_msg = "" channel_msg = ""
error_msg = _("{member} could not be unmuted for the following reasons:\n").format( error_msg = _("{member} could not be (un)muted for the following reasons:\n").format(
member=issue_list["user"] member=issue_list["user"]
) )
if issue_list["channels"]: if issue_list["channels"]: