remove async on check_roles method

This commit is contained in:
Choco
2023-09-06 09:35:43 +08:00
parent b7456f5312
commit 4f13023a04
4 changed files with 13 additions and 13 deletions

View File

@@ -31,7 +31,7 @@ from function import (
get_playlist,
update_playlist,
create_account,
checkroles
check_roles
)
from typing import Dict
@@ -200,7 +200,7 @@ class Add(ControlButton):
user = await get_playlist(interaction.user.id, 'playlist')
if not user:
return await create_account(interaction)
rank, max_p, max_t = await checkroles()
rank, max_p, max_t = check_roles()
if len(user['200']['tracks']) >= max_t:
return await self.send(interaction, self.player.get_msg("playlistlimited").format(max_t), ephemeral=True)