fix: avatar.url related fixes

This commit is contained in:
Seaswimmer 2023-08-07 20:13:02 -04:00
parent 595b1d45f3
commit c4a1d22714
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8
3 changed files with 5 additions and 17 deletions

View file

@ -246,18 +246,6 @@ class Galaxy(commands.Cog):
async def faq(self, ctx): async def faq(self, ctx):
"""Posts answers to frequently asked questions.""" """Posts answers to frequently asked questions."""
@faq.command(name="test")
@checks.admin()
async def faq_test(self, ctx, member: discord.Member = None):
"""Testing FAQ"""
embed=discord.Embed(title="Test Embed", color=await self.bot.get_embed_color(None), description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer in faucibus odio, at mollis metus.")
embed.set_footer(text=ctx.author, icon_url=ctx.author.avatar_url_as(format="png", size=512))
if member:
await ctx.channel.send(embed=embed, content=member.mention)
else:
await ctx.channel.send(embed=embed)
await ctx.message.delete()
@faq.command(name="dps") @faq.command(name="dps")
async def faq_dps(self, ctx, member: discord.Member = None): async def faq_dps(self, ctx, member: discord.Member = None):
"""DPS Calculations/Inaccuracy""" """DPS Calculations/Inaccuracy"""

View file

@ -489,7 +489,7 @@ class Info(commands.Cog):
name = " ~ ".join((name, member.nick)) if member.nick else name name = " ~ ".join((name, member.nick)) if member.nick else name
name = filter_invites(name) name = filter_invites(name)
avatar = member.avatar_url_as(format='png') avatar = member.avatar.replace(format='png')
data.set_author(name=f"{statusemoji} {name}", url=avatar) data.set_author(name=f"{statusemoji} {name}", url=avatar)
data.set_thumbnail(url=avatar) data.set_thumbnail(url=avatar)

View file

@ -85,8 +85,8 @@ class Suggestions(commands.Cog):
) )
embed = discord.Embed(color=await ctx.embed_colour(), description=suggestion) embed = discord.Embed(color=await ctx.embed_colour(), description=suggestion)
footer = [f"Suggested by {self.check_discrim(ctx.author)} ({ctx.author.id})", footer = [f"Suggested by {self.check_discrim(ctx.author)} ({ctx.author.id})",
ctx.author.avatar_url] ctx.author.avatar.url]
author = [f"{ctx.author.display_name}", ctx.author.avatar_url] author = [f"{ctx.author.display_name}", ctx.author.avatar.url]
embed.set_footer( embed.set_footer(
text=footer[0], text=footer[0],
icon_url=footer[1] icon_url=footer[1]
@ -190,7 +190,7 @@ class Suggestions(commands.Cog):
approved = "Approved" if approve else "Denied" approved = "Approved" if approve else "Denied"
embed.title = f"Suggestion {approved} (#{suggestion_id})" embed.title = f"Suggestion {approved} (#{suggestion_id})"
footer = [f"{approved} by {self.check_discrim(author)} ({author.id}", footer = [f"{approved} by {self.check_discrim(author)} ({author.id}",
author.avatar_url_as(format="png", size=512)] author.avatar.url_as(format="png", size=512)]
embed.set_footer( embed.set_footer(
text=footer[0], text=footer[0],
icon_url=footer[1] icon_url=footer[1]
@ -464,7 +464,7 @@ class Suggestions(commands.Cog):
embed.title = f"Suggestion {approved} (#{suggestion_id})" embed.title = f"Suggestion {approved} (#{suggestion_id})"
footer = [f"{approved} by {self.check_discrim(author)} ({author.id}", footer = [f"{approved} by {self.check_discrim(author)} ({author.id}",
author.avatar_url_as(format="png", size=512)] author.avatar.url_as(format="png", size=512)]
embed.set_footer( embed.set_footer(
text=footer[0], text=footer[0],
icon_url=footer[1] icon_url=footer[1]