fix(bible): set the footer with set_footer instead of trying to override footer
Some checks failed
Actions / Lint Code (Pylint) (push) Failing after 16s
Actions / Build Documentation (MkDocs) (push) Successful in 11s

This commit is contained in:
Seaswimmer 2024-02-01 18:28:22 -05:00
parent 7f2555218c
commit 8941aabf81
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -70,7 +70,7 @@ class Bible(commands.Cog):
return
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.footer = f"{ctx.prefix}bible verse - Powered by API.bible"
embed.set_footer(f"{ctx.prefix}bible verse - Powered by API.bible")
await ctx.send(embed=embed)
@bible.command(name="passage")
@ -96,5 +96,5 @@ class Bible(commands.Cog):
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.footer = f"{ctx.prefix}bible passage - Powered by API.bible"
embed.set_footer(f"{ctx.prefix}bible passage - Powered by API.bible")
await ctx.send(embed=embed)