Fix audio command docstrings not translating (#6609)

This commit is contained in:
Michael Oliveira 2025-09-04 19:26:49 -04:00 committed by GitHub
parent 8507b0165f
commit d4a1ee38f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 8 deletions

View File

@ -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),
]

View File

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