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:
jack1142 2021-02-15 00:19:34 +01:00 committed by GitHub
parent 3122eb0447
commit 6cfaffb8a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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.

View File

@ -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."""