mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
Add i18n deco to Dev and Mutes cog (#4815)
* Add i18n deco to Dev cog * Add i18n deco to Mutes cog
This commit is contained in:
parent
3122eb0447
commit
6cfaffb8a8
@ -63,6 +63,7 @@ class CompositeMetaClass(type(commands.Cog), type(ABC)):
|
||||
pass
|
||||
|
||||
|
||||
@i18n.cog_i18n(_)
|
||||
class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
|
||||
"""
|
||||
Mute users temporarily or indefinitely.
|
||||
|
||||
@ -14,7 +14,7 @@ import discord
|
||||
|
||||
from . import checks, commands
|
||||
from .commands import NoParseOptional as Optional
|
||||
from .i18n import Translator
|
||||
from .i18n import Translator, cog_i18n
|
||||
from .utils.chat_formatting import box, pagify
|
||||
from .utils.predicates import MessagePredicate
|
||||
|
||||
@ -31,6 +31,7 @@ _ = Translator("Dev", __file__)
|
||||
START_CODE_BLOCK_RE = re.compile(r"^((```py)(?=\s)|(```))")
|
||||
|
||||
|
||||
@cog_i18n(_)
|
||||
class Dev(commands.Cog):
|
||||
"""Various development focused utilities."""
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user