Skip to content

Commit

Permalink
Various formatting consistency changes and bullet point issues in mut…
Browse files Browse the repository at this point in the history
…e/unmute server responses
  • Loading branch information
TrustyJAID committed Mar 31, 2024
1 parent 9f3d11a commit aff1807
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions redbot/cogs/mutes/mutes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ async def timeout(
if len(success_list) > 1:
msg = _("{users} have been timed out in this server{time}.")
await ctx.send(
msg.format(users=humanize_list([f"{u}" for u in success_list]), time=time)
msg.format(users=humanize_list([f"`{u}`" for u in success_list]), time=time)
)
else:
await ctx.send(_("None of the users provided could be muted properly."))
Expand Down Expand Up @@ -1273,7 +1273,7 @@ async def mute(
if len(success_list) > 1:
msg = _("{users} have been muted in this server{time}.")
await ctx.send(
msg.format(users=humanize_list([f"{u}" for u in success_list]), time=time)
msg.format(users=humanize_list([f"`{u}`" for u in success_list]), time=time)
)
if issue_list:
await self.handle_issues(ctx, issue_list)
Expand Down Expand Up @@ -1424,12 +1424,12 @@ async def channel_mute(
if len(success_list) > 1:
msg = _("{users} have been muted in this channel{time}.")
await ctx.send(
msg.format(users=humanize_list([f"{u}" for u in success_list]), time=time)
msg.format(users=humanize_list([f"`{u}`" for u in success_list]), time=time)
)
if issue_list:
msg = _("The following users could not be muted\n")
msg = _("The following users could not be muted:\n")
for issue in issue_list:
msg += f"{issue.user}: {issue.reason}\n"
msg += f"- `{issue.user}`: {issue.reason}\n"
await ctx.send_interactive(pagify(msg))

@commands.command(usage="<users...> [reason]")
Expand Down Expand Up @@ -1498,7 +1498,7 @@ async def unmute(
await self.config.guild(ctx.guild).muted_users.clear()
await ctx.send(
_("{users} unmuted in this server.").format(
users=humanize_list([f"{u}" for u in success_list])
users=humanize_list([f"`{u}`" for u in success_list])
)
)
if issue_list:
Expand Down Expand Up @@ -1572,7 +1572,7 @@ async def forceunmute(
await self.config.guild(ctx.guild).muted_users.clear()
await ctx.send(
_("{users} unmuted in this server.").format(
users=humanize_list([f"{u}" for u in success_list])
users=humanize_list([f"`{u}`" for u in success_list])
)
)
if issue_list:
Expand Down Expand Up @@ -1638,13 +1638,13 @@ async def unmute_channel(
await self.config.channel(channel).muted_users.clear()
await ctx.send(
_("{users} unmuted in this channel.").format(
users=humanize_list([f"{u}" for u in success_list])
users=humanize_list([f"`{u}`" for u in success_list])
)
)
if issue_list:
msg = _("The following users could not be unmuted\n")
msg = _("The following users could not be unmuted:\n")
for issue in issue_list:
msg += f"{issue.user}: {issue.reason}\n"
msg += f"- `{issue.user}`: {issue.reason}\n"
await ctx.send_interactive(pagify(msg))

async def mute_user(
Expand Down

0 comments on commit aff1807

Please sign in to comment.