fixed runtime error regarding unpacking dataset

This commit is contained in:
Corban-Lee Jones 2024-01-31 11:50:17 +00:00
parent c785e5eeed
commit a5eb297f1b

View File

@ -127,7 +127,9 @@ class FeedCog(commands.Cog):
async def autocomplete_rssfeed(self, inter: Interaction, name: str) -> list[Choice]:
async with aiohttp.ClientSession() as session:
data = await API(session).get_rssfeed_list()
data, _ = await API(self.bot.api_token, session).get_rssfeed_list(
discord_server_id=inter.guild_id
)
rssfeeds = RSSFeed.from_list(data)
choices = [