Move avatar_url -> display_avatar
This commit is contained in:
parent
3707a26187
commit
2ffc0ec732
13 changed files with 36 additions and 36 deletions
|
@ -43,7 +43,7 @@ class KickCog(Scale):
|
|||
|
||||
embed.set_author(
|
||||
name=ctx.author.username + "#" + ctx.author.discriminator,
|
||||
icon_url=ctx.author.avatar_url,
|
||||
icon_url=ctx.author.display_avatar,
|
||||
)
|
||||
embed.set_thumbnail(url=ctx.guild.icon_url)
|
||||
|
||||
|
@ -63,9 +63,9 @@ class KickCog(Scale):
|
|||
|
||||
embed.set_author(
|
||||
name=user.nick if user.nick else user.name,
|
||||
icon_url=user.avatar_url,
|
||||
icon_url=user.display_avatar,
|
||||
)
|
||||
embed.set_thumbnail(url=user.avatar_url)
|
||||
embed.set_thumbnail(url=user.display_avatar)
|
||||
embed.set_footer(text=f"{user.name}#{user.discriminator} | {user.id}")
|
||||
|
||||
await ctx.send(embed=embed)
|
||||
|
|
|
@ -89,9 +89,9 @@ class MuteCog(Scale):
|
|||
)
|
||||
embed.set_author(
|
||||
name=user.display_name,
|
||||
icon_url=user.avatar_url,
|
||||
icon_url=user.display_avatar,
|
||||
)
|
||||
embed.set_thumbnail(url=user.avatar_url)
|
||||
embed.set_thumbnail(url=user.display_avatar)
|
||||
embed.set_footer(text=f"{user.username}#{user.discriminator} | {user.id}")
|
||||
await ctx.send(embed=embed)
|
||||
|
||||
|
@ -117,15 +117,15 @@ class MuteCog(Scale):
|
|||
)
|
||||
embed.set_author(
|
||||
name=user.display_name,
|
||||
icon_url=user.avatar_url,
|
||||
icon_url=user.display_avatar,
|
||||
)
|
||||
embed.set_thumbnail(url=user.avatar_url)
|
||||
embed.set_thumbnail(url=user.display_avatar)
|
||||
embed.set_footer(text=f"{user.username}#{user.discriminator} | {user.id}")
|
||||
await ctx.send(embed=embed)
|
||||
embed.set_author(
|
||||
name=user.display_name,
|
||||
icon_url=user.avatar_url,
|
||||
icon_url=user.display_avatar,
|
||||
)
|
||||
embed.set_thumbnail(url=user.avatar_url)
|
||||
embed.set_thumbnail(url=user.display_avatar)
|
||||
embed.set_footer(text=f"{user.username}#{user.discriminator} | {user.id}")
|
||||
await ctx.send(embed=embed)
|
||||
|
|
|
@ -112,7 +112,7 @@ class RolepingCog(CacheCog):
|
|||
if not admin:
|
||||
admin = self.bot.user
|
||||
|
||||
embed.set_author(name=admin.display_name, icon_url=admin.avatar_url)
|
||||
embed.set_author(name=admin.display_name, icon_url=admin.display_avatar)
|
||||
embed.set_footer(text=f"{admin.name}#{admin.discriminator} | {admin.id}")
|
||||
|
||||
embeds.append(embed)
|
||||
|
|
|
@ -70,7 +70,7 @@ class WarningCog(CacheCog):
|
|||
)
|
||||
embed.set_author(
|
||||
name=user.display_name,
|
||||
icon_url=user.avatar_url,
|
||||
icon_url=user.display_avatar,
|
||||
)
|
||||
embed.set_footer(text=f"{user.name}#{user.discriminator} | {user.id}")
|
||||
|
||||
|
@ -117,7 +117,7 @@ class WarningCog(CacheCog):
|
|||
description=f"{warnings.count()} total | 0 currently active",
|
||||
fields=[],
|
||||
)
|
||||
embed.set_author(name=user.username, icon_url=user.avatar_url)
|
||||
embed.set_author(name=user.username, icon_url=user.display_avatar)
|
||||
embed.set_thumbnail(url=ctx.guild.icon_url)
|
||||
pages.append(embed)
|
||||
else:
|
||||
|
@ -144,7 +144,7 @@ class WarningCog(CacheCog):
|
|||
)
|
||||
embed.set_author(
|
||||
name=user.username + "#" + user.discriminator,
|
||||
icon_url=user.avatar_url,
|
||||
icon_url=user.display_avatar,
|
||||
)
|
||||
embed.set_thumbnail(url=ctx.guild.icon_url)
|
||||
embed.set_footer(text=f"{user.username}#{user.discriminator} | {user.id}")
|
||||
|
@ -171,7 +171,7 @@ class WarningCog(CacheCog):
|
|||
)
|
||||
embed.set_author(
|
||||
name=user.username + "#" + user.discriminator,
|
||||
icon_url=user.avatar_url,
|
||||
icon_url=user.display_avatar,
|
||||
)
|
||||
embed.set_thumbnail(url=ctx.guild.icon_url)
|
||||
pages.append(embed)
|
||||
|
|
|
@ -86,7 +86,7 @@ class GitlabCog(CacheCog):
|
|||
)
|
||||
embed.set_author(
|
||||
name=issue.author["name"],
|
||||
icon_url=issue.author["avatar_url"],
|
||||
icon_url=issue.author["display_avatar"],
|
||||
url=issue.author["web_url"],
|
||||
)
|
||||
embed.set_thumbnail(
|
||||
|
@ -220,7 +220,7 @@ class GitlabCog(CacheCog):
|
|||
)
|
||||
embed.set_author(
|
||||
name=mr.author["name"],
|
||||
icon_url=mr.author["avatar_url"],
|
||||
icon_url=mr.author["display_avatar"],
|
||||
url=mr.author["web_url"],
|
||||
)
|
||||
embed.set_thumbnail(
|
||||
|
|
|
@ -43,7 +43,7 @@ class ModlogCommandCog(commands.Cog):
|
|||
)
|
||||
embed.set_author(
|
||||
name=ctx.author.name,
|
||||
icon_url=ctx.author.avatar_url,
|
||||
icon_url=ctx.author.display_avatar,
|
||||
)
|
||||
embed.set_footer(
|
||||
text=f"{ctx.author.name}#{ctx.author.discriminator} | {ctx.author.id}"
|
||||
|
|
|
@ -324,7 +324,7 @@ class ModlogMemberCog(commands.Cog):
|
|||
)
|
||||
embed.set_author(
|
||||
name=f"{after.name}",
|
||||
icon_url=after.avatar_url,
|
||||
icon_url=after.display_avatar,
|
||||
)
|
||||
embed.set_footer(text=f"{after.name}#{after.discriminator} | {after.id}")
|
||||
elif len(before.roles) != len(after.roles):
|
||||
|
|
|
@ -44,7 +44,7 @@ class ModlogMessageCog(commands.Cog):
|
|||
)
|
||||
embed.set_author(
|
||||
name=before.author.name,
|
||||
icon_url=before.author.avatar_url,
|
||||
icon_url=before.author.display_avatar,
|
||||
url=after.jump_url,
|
||||
)
|
||||
embed.set_footer(
|
||||
|
@ -99,7 +99,7 @@ class ModlogMessageCog(commands.Cog):
|
|||
|
||||
embed.set_author(
|
||||
name=message.author.name,
|
||||
icon_url=message.author.avatar_url,
|
||||
icon_url=message.author.display_avatar,
|
||||
url=message.jump_url,
|
||||
)
|
||||
embed.set_footer(
|
||||
|
|
|
@ -35,7 +35,7 @@ def modlog_embed(
|
|||
)
|
||||
embed.set_author(
|
||||
name=f"{member.name}",
|
||||
icon_url=member.avatar_url,
|
||||
icon_url=member.display_avatar,
|
||||
)
|
||||
embed.set_footer(text=f"{member.name}#{member.discriminator} | {member.id}")
|
||||
return embed
|
||||
|
|
|
@ -149,9 +149,9 @@ class RemindmeCog(CacheCog):
|
|||
|
||||
embed.set_author(
|
||||
name=ctx.author.username + "#" + ctx.author.discriminator,
|
||||
icon_url=ctx.author.avatar_url,
|
||||
icon_url=ctx.author.display_avatar,
|
||||
)
|
||||
embed.set_thumbnail(url=ctx.author.avatar_url)
|
||||
embed.set_thumbnail(url=ctx.author.display_avatar)
|
||||
|
||||
await ctx.send(embed=embed)
|
||||
|
||||
|
@ -177,9 +177,9 @@ class RemindmeCog(CacheCog):
|
|||
|
||||
embed.set_author(
|
||||
name=ctx.author.username + "#" + ctx.author.discriminator,
|
||||
icon_url=ctx.author.avatar_url,
|
||||
icon_url=ctx.author.display_avatar,
|
||||
)
|
||||
embed.set_thumbnail(url=ctx.author.avatar_url)
|
||||
embed.set_thumbnail(url=ctx.author.display_avatar)
|
||||
|
||||
return embed
|
||||
|
||||
|
@ -265,9 +265,9 @@ class RemindmeCog(CacheCog):
|
|||
|
||||
embed.set_author(
|
||||
name=ctx.author.name + "#" + ctx.author.discriminator,
|
||||
icon_url=ctx.author.avatar_url,
|
||||
icon_url=ctx.author.display_avatar,
|
||||
)
|
||||
embed.set_thumbnail(url=ctx.author.avatar_url)
|
||||
embed.set_thumbnail(url=ctx.author.display_avatar)
|
||||
|
||||
await used_component.context.edit_origin(
|
||||
content=f"Deleted {len(used_component.context.values)} reminder(s)",
|
||||
|
@ -296,9 +296,9 @@ class RemindmeCog(CacheCog):
|
|||
)
|
||||
embed.set_author(
|
||||
name=user.name + "#" + user.discriminator,
|
||||
icon_url=user.avatar_url,
|
||||
icon_url=user.display_avatar,
|
||||
)
|
||||
embed.set_thumbnail(url=user.avatar_url)
|
||||
embed.set_thumbnail(url=user.display_avatar)
|
||||
try:
|
||||
await user.send(embed=embed)
|
||||
except Exception:
|
||||
|
|
|
@ -221,7 +221,7 @@ class StarboardCog(commands.Cog):
|
|||
embed.set_author(
|
||||
name=message.author.name,
|
||||
url=message.jump_url,
|
||||
icon_url=message.author.avatar_url,
|
||||
icon_url=message.author.display_avatar,
|
||||
)
|
||||
embed.set_footer(text=message.guild.name + " | " + message.channel.name)
|
||||
if image_url:
|
||||
|
|
|
@ -126,7 +126,7 @@ class UtilCog(commands.Cog):
|
|||
if not user:
|
||||
user = ctx.author
|
||||
|
||||
avatar = user.avatar_url
|
||||
avatar = user.display_avatar
|
||||
embed = build_embed(title="Avatar", description="", fields=[], color="#00FFEE")
|
||||
embed.set_image(url=avatar)
|
||||
embed.set_author(name=f"{user.name}#{user.discriminator}", icon_url=avatar)
|
||||
|
@ -223,8 +223,8 @@ class UtilCog(commands.Cog):
|
|||
color=str(user_roles[0].color) if user_roles else "#FF0000",
|
||||
)
|
||||
|
||||
embed.set_author(name=f"{user.name}#{user.discriminator}", icon_url=user.avatar_url)
|
||||
embed.set_thumbnail(url=user.avatar_url)
|
||||
embed.set_author(name=f"{user.name}#{user.discriminator}", icon_url=user.display_avatar)
|
||||
embed.set_thumbnail(url=user.display_avatar)
|
||||
embed.set_footer(text=f"ID: {user.id}")
|
||||
|
||||
await ctx.send(embed=embed)
|
||||
|
|
|
@ -85,7 +85,7 @@ class MessageEventHandler(object):
|
|||
)
|
||||
embed.set_author(
|
||||
name=message.author.nick if message.author.nick else message.author.name,
|
||||
icon_url=message.author.avatar_url,
|
||||
icon_url=message.author.display_avatar,
|
||||
)
|
||||
embed.set_footer(
|
||||
text=f"{message.author.name}#{message.author.discriminator} | {message.author.id}" # noqa: E501
|
||||
|
@ -121,7 +121,7 @@ class MessageEventHandler(object):
|
|||
)
|
||||
embed.set_author(
|
||||
name=message.author.nick if message.author.nick else message.author.name,
|
||||
icon_url=message.author.avatar_url,
|
||||
icon_url=message.author.display_avatar,
|
||||
)
|
||||
embed.set_footer(
|
||||
text=f"{message.author.name}#{message.author.discriminator} | {message.author.id}"
|
||||
|
@ -191,7 +191,7 @@ class MessageEventHandler(object):
|
|||
)
|
||||
embed.set_author(
|
||||
name=message.author.nick if message.author.nick else message.author.name,
|
||||
icon_url=message.author.avatar_url,
|
||||
icon_url=message.author.display_avatar,
|
||||
)
|
||||
embed.set_footer(
|
||||
text=f"{message.author.name}#{message.author.discriminator} | {message.author.id}"
|
||||
|
|
Loading…
Add table
Reference in a new issue