fix: avatar.url related fixes
This commit is contained in:
parent
595b1d45f3
commit
c4a1d22714
3 changed files with 5 additions and 17 deletions
|
@ -246,18 +246,6 @@ class Galaxy(commands.Cog):
|
|||
async def faq(self, ctx):
|
||||
"""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")
|
||||
async def faq_dps(self, ctx, member: discord.Member = None):
|
||||
"""DPS Calculations/Inaccuracy"""
|
||||
|
|
|
@ -489,7 +489,7 @@ class Info(commands.Cog):
|
|||
name = " ~ ".join((name, member.nick)) if member.nick else 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_thumbnail(url=avatar)
|
||||
|
||||
|
|
|
@ -85,8 +85,8 @@ class Suggestions(commands.Cog):
|
|||
)
|
||||
embed = discord.Embed(color=await ctx.embed_colour(), description=suggestion)
|
||||
footer = [f"Suggested by {self.check_discrim(ctx.author)} ({ctx.author.id})",
|
||||
ctx.author.avatar_url]
|
||||
author = [f"{ctx.author.display_name}", ctx.author.avatar_url]
|
||||
ctx.author.avatar.url]
|
||||
author = [f"{ctx.author.display_name}", ctx.author.avatar.url]
|
||||
embed.set_footer(
|
||||
text=footer[0],
|
||||
icon_url=footer[1]
|
||||
|
@ -190,7 +190,7 @@ class Suggestions(commands.Cog):
|
|||
approved = "Approved" if approve else "Denied"
|
||||
embed.title = f"Suggestion {approved} (#{suggestion_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(
|
||||
text=footer[0],
|
||||
icon_url=footer[1]
|
||||
|
@ -464,7 +464,7 @@ class Suggestions(commands.Cog):
|
|||
|
||||
embed.title = f"Suggestion {approved} (#{suggestion_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(
|
||||
text=footer[0],
|
||||
icon_url=footer[1]
|
||||
|
|
Loading…
Reference in a new issue