From f1670925103fdfc0f38132ed2748f45c5f40bc17 Mon Sep 17 00:00:00 2001 From: corbz Date: Sun, 18 Feb 2024 21:40:56 +0000 Subject: [PATCH] Fixed an exc where the bot didnt have channel perms --- src/extensions/rss.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/extensions/rss.py b/src/extensions/rss.py index 63d1365..0e69f3d 100644 --- a/src/extensions/rss.py +++ b/src/extensions/rss.py @@ -381,9 +381,8 @@ class FeedCog(commands.Cog): async def formatdata(index: int, item: dict) -> tuple[str, str]: item = SubscriptionChannel.from_dict(item) - channel = self.bot.get_channel(id) or await self.bot.fetch_channel(item.id) next_emoji = self.bot.get_emoji(1204542366602502265) - key = f"{index}. {item.subscription.name} {next_emoji} {channel.mention}" + key = f"{index}. {item.subscription.name} {next_emoji} <#{item.id}>" value = f"[RSS]({item.subscription.rss_url}) ยท [API]({API.CHANNEL_ENDPOINT}{item.uuid}/)" return key, value