Fixed an exc where the bot didnt have channel perms
This commit is contained in:
parent
805efd0a60
commit
f167092510
@ -381,9 +381,8 @@ class FeedCog(commands.Cog):
|
|||||||
|
|
||||||
async def formatdata(index: int, item: dict) -> tuple[str, str]:
|
async def formatdata(index: int, item: dict) -> tuple[str, str]:
|
||||||
item = SubscriptionChannel.from_dict(item)
|
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)
|
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}/)"
|
value = f"[RSS]({item.subscription.rss_url}) · [API]({API.CHANNEL_ENDPOINT}{item.uuid}/)"
|
||||||
return key, value
|
return key, value
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user