forceclear
This commit is contained in:
parent
020bc60c42
commit
7338b53965
@ -41,7 +41,7 @@ class QueueAudio(discord.AudioSource):
|
||||
|
||||
@staticmethod
|
||||
async def respawned(servicing: AServicing, db: DbConnection, guild: discord.Guild) -> list[Audio]:
|
||||
respawned = []
|
||||
respawned: list[Audio] = []
|
||||
try:
|
||||
for audio_respawn in db.get(guild.id, []):
|
||||
try:
|
||||
@ -115,6 +115,9 @@ class QueueAudio(discord.AudioSource):
|
||||
|
||||
def clear(self, member: discord.Member) -> None:
|
||||
assert_admin(member)
|
||||
self.forceclear()
|
||||
|
||||
def forceclear(self) -> None:
|
||||
to_clean = list(self.queue)
|
||||
self.queue.clear()
|
||||
for audio in to_clean:
|
||||
|
Loading…
Reference in New Issue
Block a user