mirror of
https://github.com/deadcxap/YandexMusicDiscordBot.git
synced 2026-01-11 02:11:45 +03:00
impr: Code and logs improvement.
This commit is contained in:
@@ -6,14 +6,6 @@ from MusicBot.database import BaseGuildsDatabase
|
||||
|
||||
class VoiceGuildsDatabase(BaseGuildsDatabase):
|
||||
|
||||
def clear_history(self, gid: int) -> None:
|
||||
"""Clear previous and next tracks list.
|
||||
|
||||
Args:
|
||||
gid (int): _description_
|
||||
"""
|
||||
self.update(gid, {'previous_tracks': [], 'next_tracks': []})
|
||||
|
||||
def get_tracks_list(self, gid: int, type: Literal['next', 'previous']) -> list[dict[str, Any]]:
|
||||
"""Get tracks list with given type.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user