mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-05 18:58:53 -05:00
Fix audio command docstrings not translating (#6609)
This commit is contained in:
parent
8507b0165f
commit
d4a1ee38f0
@ -3,7 +3,6 @@ import datetime
|
||||
import json
|
||||
|
||||
from collections import Counter, defaultdict
|
||||
from pathlib import Path
|
||||
from typing import Mapping, Dict
|
||||
|
||||
import aiohttp
|
||||
@ -13,7 +12,6 @@ from redbot.core import Config
|
||||
from redbot.core.bot import Red
|
||||
from redbot.core.commands import Cog
|
||||
from redbot.core.data_manager import cog_data_path
|
||||
from redbot.core.i18n import Translator, cog_i18n
|
||||
from redbot.core.utils.antispam import AntiSpam
|
||||
|
||||
from ..utils import (
|
||||
@ -25,10 +23,7 @@ from ..utils import (
|
||||
from . import abc, cog_utils, commands, events, tasks, utilities
|
||||
from .cog_utils import CompositeMetaClass
|
||||
|
||||
_ = Translator("Audio", Path(__file__))
|
||||
|
||||
|
||||
@cog_i18n(_)
|
||||
class Audio(
|
||||
commands.Commands,
|
||||
events.Events,
|
||||
@ -37,8 +32,6 @@ class Audio(
|
||||
Cog,
|
||||
metaclass=CompositeMetaClass,
|
||||
):
|
||||
"""Play audio through voice channels."""
|
||||
|
||||
llset_captcha_intervals = [
|
||||
(datetime.timedelta(days=1), 1),
|
||||
]
|
||||
|
||||
@ -8,8 +8,13 @@ from .miscellaneous import MiscellaneousCommands
|
||||
from .player import PlayerCommands
|
||||
from .playlists import PlaylistCommands
|
||||
from .queue import QueueCommands
|
||||
from redbot.core.i18n import Translator, cog_i18n
|
||||
|
||||
|
||||
_ = Translator("Audio", __file__)
|
||||
|
||||
|
||||
@cog_i18n(_)
|
||||
class Commands(
|
||||
AudioSetCommands,
|
||||
PlayerControllerCommands,
|
||||
@ -22,4 +27,4 @@ class Commands(
|
||||
QueueCommands,
|
||||
metaclass=CompositeMetaClass,
|
||||
):
|
||||
"""Class joining all command subclasses"""
|
||||
"""Play audio through voice channels."""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user