mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 18:02:31 -05:00
* Do not include 'I agree' prompt in translation string
* Add more stuff
* Address review comment
* Address review comments
(cherry picked from commit 4b70acb989)
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
@@ -13,7 +13,13 @@ from .voicemutes import VoiceMutes
|
||||
from redbot.core.bot import Red
|
||||
from redbot.core import commands, checks, i18n, modlog, Config
|
||||
from redbot.core.utils import AsyncIter, bounded_gather
|
||||
from redbot.core.utils.chat_formatting import bold, humanize_timedelta, humanize_list, pagify
|
||||
from redbot.core.utils.chat_formatting import (
|
||||
bold,
|
||||
humanize_timedelta,
|
||||
humanize_list,
|
||||
inline,
|
||||
pagify,
|
||||
)
|
||||
from redbot.core.utils.mod import get_audit_reason
|
||||
from redbot.core.utils.menus import start_adding_reactions
|
||||
from redbot.core.utils.predicates import MessagePredicate, ReactionPredicate
|
||||
@@ -983,9 +989,9 @@ class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
|
||||
command_2 = f"{ctx.clean_prefix}muteset makerole"
|
||||
msg = _(
|
||||
"This server does not have a mute role setup. "
|
||||
" You can setup a mute role with `{command_1}` or"
|
||||
"`{command_2}` if you just want a basic role created setup.\n\n"
|
||||
).format(command_1=command_1, command_2=command_2)
|
||||
" You can setup a mute role with {command_1} or"
|
||||
" {command_2} if you just want a basic role created setup.\n\n"
|
||||
)
|
||||
mute_role_id = await self.config.guild(ctx.guild).mute_role()
|
||||
mute_role = ctx.guild.get_role(mute_role_id)
|
||||
sent_instructions = await self.config.guild(ctx.guild).sent_instructions()
|
||||
@@ -1014,10 +1020,16 @@ class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
|
||||
)
|
||||
else:
|
||||
msg += _(
|
||||
"Saying `yes` will continue "
|
||||
"Saying {response_1} will continue "
|
||||
"the mute with overwrites and stop this message from appearing again, "
|
||||
"saying `no` will end the mute attempt."
|
||||
"saying {response_2} will end the mute attempt."
|
||||
)
|
||||
msg = msg.format(
|
||||
command_1=inline(command_1),
|
||||
command_2=inline(command_2),
|
||||
response_1=inline("yes"),
|
||||
response_2=inline("no"),
|
||||
)
|
||||
query: discord.Message = await ctx.send(msg)
|
||||
if can_react:
|
||||
# noinspection PyAsyncCall
|
||||
|
||||
Reference in New Issue
Block a user