mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -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
|
import json
|
||||||
|
|
||||||
from collections import Counter, defaultdict
|
from collections import Counter, defaultdict
|
||||||
from pathlib import Path
|
|
||||||
from typing import Mapping, Dict
|
from typing import Mapping, Dict
|
||||||
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
@ -13,7 +12,6 @@ from redbot.core import Config
|
|||||||
from redbot.core.bot import Red
|
from redbot.core.bot import Red
|
||||||
from redbot.core.commands import Cog
|
from redbot.core.commands import Cog
|
||||||
from redbot.core.data_manager import cog_data_path
|
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 redbot.core.utils.antispam import AntiSpam
|
||||||
|
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
@ -25,10 +23,7 @@ from ..utils import (
|
|||||||
from . import abc, cog_utils, commands, events, tasks, utilities
|
from . import abc, cog_utils, commands, events, tasks, utilities
|
||||||
from .cog_utils import CompositeMetaClass
|
from .cog_utils import CompositeMetaClass
|
||||||
|
|
||||||
_ = Translator("Audio", Path(__file__))
|
|
||||||
|
|
||||||
|
|
||||||
@cog_i18n(_)
|
|
||||||
class Audio(
|
class Audio(
|
||||||
commands.Commands,
|
commands.Commands,
|
||||||
events.Events,
|
events.Events,
|
||||||
@ -37,8 +32,6 @@ class Audio(
|
|||||||
Cog,
|
Cog,
|
||||||
metaclass=CompositeMetaClass,
|
metaclass=CompositeMetaClass,
|
||||||
):
|
):
|
||||||
"""Play audio through voice channels."""
|
|
||||||
|
|
||||||
llset_captcha_intervals = [
|
llset_captcha_intervals = [
|
||||||
(datetime.timedelta(days=1), 1),
|
(datetime.timedelta(days=1), 1),
|
||||||
]
|
]
|
||||||
|
|||||||
@ -8,8 +8,13 @@ from .miscellaneous import MiscellaneousCommands
|
|||||||
from .player import PlayerCommands
|
from .player import PlayerCommands
|
||||||
from .playlists import PlaylistCommands
|
from .playlists import PlaylistCommands
|
||||||
from .queue import QueueCommands
|
from .queue import QueueCommands
|
||||||
|
from redbot.core.i18n import Translator, cog_i18n
|
||||||
|
|
||||||
|
|
||||||
|
_ = Translator("Audio", __file__)
|
||||||
|
|
||||||
|
|
||||||
|
@cog_i18n(_)
|
||||||
class Commands(
|
class Commands(
|
||||||
AudioSetCommands,
|
AudioSetCommands,
|
||||||
PlayerControllerCommands,
|
PlayerControllerCommands,
|
||||||
@ -22,4 +27,4 @@ class Commands(
|
|||||||
QueueCommands,
|
QueueCommands,
|
||||||
metaclass=CompositeMetaClass,
|
metaclass=CompositeMetaClass,
|
||||||
):
|
):
|
||||||
"""Class joining all command subclasses"""
|
"""Play audio through voice channels."""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user