Move user.name -> user.username
This commit is contained in:
parent
2ffc0ec732
commit
6f8f93e9bd
3 changed files with 4 additions and 4 deletions
|
@ -155,7 +155,7 @@ class BanCog(CacheCog):
|
|||
)
|
||||
|
||||
user_embed.set_author(
|
||||
name=ctx.author.name + "#" + ctx.author.discriminator,
|
||||
name=ctx.author.username + "#" + ctx.author.discriminator,
|
||||
icon_url=ctx.author.avatar,
|
||||
)
|
||||
user_embed.set_thumbnail(url=ctx.guild.icon_url)
|
||||
|
|
|
@ -42,10 +42,10 @@ class ModlogCommandCog(commands.Cog):
|
|||
color="#fc9e3f",
|
||||
)
|
||||
embed.set_author(
|
||||
name=ctx.author.name,
|
||||
name=ctx.author.username,
|
||||
icon_url=ctx.author.display_avatar,
|
||||
)
|
||||
embed.set_footer(
|
||||
text=f"{ctx.author.name}#{ctx.author.discriminator} | {ctx.author.id}"
|
||||
text=f"{ctx.author.username}#{ctx.author.discriminator} | {ctx.author.id}"
|
||||
)
|
||||
await channel.send(embed=embed)
|
||||
|
|
|
@ -264,7 +264,7 @@ class RemindmeCog(CacheCog):
|
|||
)
|
||||
|
||||
embed.set_author(
|
||||
name=ctx.author.name + "#" + ctx.author.discriminator,
|
||||
name=ctx.author.username + "#" + ctx.author.discriminator,
|
||||
icon_url=ctx.author.display_avatar,
|
||||
)
|
||||
embed.set_thumbnail(url=ctx.author.display_avatar)
|
||||
|
|
Loading…
Add table
Reference in a new issue