Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update .avatar_url to .display_avatar #95

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion robocop_ng/cogs/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async def robocop(self, ctx):
title="Robocop-NG", url=config.source_url, description=config.embed_desc
)

embed.set_thumbnail(url=self.bot.user.avatar_url)
embed.set_thumbnail(url=self.bot.user.display_avatar)

await ctx.send(embed=embed)

Expand Down
4 changes: 2 additions & 2 deletions robocop_ng/cogs/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ async def on_member_join(self, member):
embed = discord.Embed(
color=discord.Color.dark_red(), title=f"Warns for {escaped_name}"
)
embed.set_thumbnail(url=member.avatar_url)
embed.set_thumbnail(url=member.display_avatar)
for idx, warn in enumerate(warns[str(member.id)]["warns"]):
embed.add_field(
name=f"{idx + 1}: {warn['timestamp']}",
Expand Down Expand Up @@ -188,7 +188,7 @@ async def do_spy(self, message):
# Show a message embed
embed = discord.Embed(description=regd)
embed.set_author(
name=message.author.display_name, icon_url=message.author.avatar_url
name=message.author.display_name, icon_url=message.author.display_avatar
)

await spy_channel.send(msg, embed=embed)
Expand Down
2 changes: 1 addition & 1 deletion robocop_ng/cogs/mod_userlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ async def userinfo(self, ctx, *, user: discord.Member):
await ctx.send(
f"user = {user_name}\n"
f"id = {user.id}\n"
f"avatar = {user.avatar_url}\n"
f"avatar = {user.display_avatar}\n"
f"bot = {user.bot}\n"
f"created_at = {user.created_at}\n"
f"display_name = {display_name}\n"
Expand Down