mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Properly iterate through dict's items in multi channel unmute (#4534)
This commit is contained in:
parent
46c0f5e373
commit
bcc24d67d1
@ -364,7 +364,7 @@ class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
|
|||||||
error_msg = _("{member} could not be unmuted for the following reasons:\n").format(
|
error_msg = _("{member} could not be unmuted for the following reasons:\n").format(
|
||||||
member=member
|
member=member
|
||||||
)
|
)
|
||||||
for reason, channel_list in reasons:
|
for reason, channel_list in reasons.items():
|
||||||
error_msg += _("{reason} In the following channels: {channels}\n").format(
|
error_msg += _("{reason} In the following channels: {channels}\n").format(
|
||||||
reason=reason,
|
reason=reason,
|
||||||
channels=humanize_list([c.mention for c in channel_list]),
|
channels=humanize_list([c.mention for c in channel_list]),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user