[fix]: Annotations fix
This commit is contained in:
parent
e36155dd3f
commit
a054ae191a
@ -20,13 +20,13 @@ YDL_OPTIONS = {'format': 'bestaudio', 'noplaylist':'True'}
|
|||||||
class Song:
|
class Song:
|
||||||
register: int
|
register: int
|
||||||
url: str
|
url: str
|
||||||
info: Dict[str, Any]
|
info: dict[str, any]
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class Channel:
|
class Channel:
|
||||||
adder: discord.Member
|
adder: discord.Member
|
||||||
cur_pos: int
|
cur_pos: int
|
||||||
queue: List[Song]
|
queue: list[Song]
|
||||||
context: discord.Interaction
|
context: discord.Interaction
|
||||||
# skip_policy: Enum "everyone"
|
# skip_policy: Enum "everyone"
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ class Channel:
|
|||||||
class Music(commands.Cog, name="Музыка"):
|
class Music(commands.Cog, name="Музыка"):
|
||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
self.queue: Dict[int, Channel] = {}
|
self.queue: dict[int, Channel] = {}
|
||||||
|
|
||||||
|
|
||||||
@app_commands.command(description="Plays music from popular platforms")
|
@app_commands.command(description="Plays music from popular platforms")
|
||||||
|
Reference in New Issue
Block a user