fix(bible): fixed embed.set_footer()

This commit is contained in:
Seaswimmer 2024-02-01 18:29:00 -05:00
parent 8941aabf81
commit bb53343ecc
Signed by untrusted user: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -70,7 +70,7 @@ class Bible(commands.Cog):
return return
passage = await self._get_passage(bible_id, f"{book_id}.{chapter}.{verse}") passage = await self._get_passage(bible_id, f"{book_id}.{chapter}.{verse}")
embed = Embed(title=f"{passage['reference']}", description=passage["content"].replace('', ''), color=await self.bot.get_embed_color(ctx.channel)) embed = Embed(title=f"{passage['reference']}", description=passage["content"].replace('', ''), color=await self.bot.get_embed_color(ctx.channel))
embed.set_footer(f"{ctx.prefix}bible verse - Powered by API.bible") embed.set_footer(text=f"{ctx.prefix}bible verse - Powered by API.bible")
await ctx.send(embed=embed) await ctx.send(embed=embed)
@bible.command(name="passage") @bible.command(name="passage")
@ -96,5 +96,5 @@ class Bible(commands.Cog):
passage = await self._get_passage(bible_id, f"{book_id}.{passage.replace(':', '.')}") passage = await self._get_passage(bible_id, f"{book_id}.{passage.replace(':', '.')}")
embed = Embed(title=f"{passage['reference']}", description=passage["content"].replace('', ''), color=await self.bot.get_embed_color(ctx.channel)) embed = Embed(title=f"{passage['reference']}", description=passage["content"].replace('', ''), color=await self.bot.get_embed_color(ctx.channel))
embed.set_footer(f"{ctx.prefix}bible passage - Powered by API.bible") embed.set_footer(text=f"{ctx.prefix}bible passage - Powered by API.bible")
await ctx.send(embed=embed) await ctx.send(embed=embed)