Fixed an exc where the bot didnt have channel perms

This commit is contained in:
Corban-Lee Jones 2024-02-18 21:40:56 +00:00
parent 805efd0a60
commit f167092510

View File

@ -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