Skip to content

Commit

Permalink
remove use of name discriminator
Browse files Browse the repository at this point in the history
  • Loading branch information
LBlend committed Nov 7, 2024
1 parent 57043f6 commit 046631e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/cogs/botinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async def botinfo(self, interaction: discord.Interaction):
embed = discord.Embed(color=interaction.client.user.color, url=self.bot.misc['website'])
embed.set_author(name=dev.name, icon_url=dev.display_avatar)
embed.set_thumbnail(url=self.bot.user.display_avatar)
embed.add_field(name='Dev', value=f'{dev.mention}\n{dev.name}#{dev.discriminator}')
embed.add_field(name='Dev', value=f'{dev.mention}\n{dev.name}')
embed.add_field(name='Uptime', value=self.__get_uptime())
embed.add_field(name='Ping', value=f'Websocket ping: {self.__get_ping()} ms')
embed.add_field(name='Servers', value=len(self.bot.guilds))
Expand Down
4 changes: 2 additions & 2 deletions src/cogs/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async def on_command(self, ctx: commands.Context):

self.bot.logger.info(
f'{"❌ " if ctx.command_failed else "✔ "} {ctx.command} | ' +
f'{ctx.author.name}#{ctx.author.discriminator} ({ctx.author.id}) | ' +
f'{ctx.author.name} ({ctx.author.id}) | ' +
f'{ctx.guild.id}-{ctx.channel.id}-{ctx.message.id}'
)

Expand All @@ -54,7 +54,7 @@ async def on_app_command_completion(

self.bot.logger.info(
f'{"❌ " if interaction.command_failed else "✔ "} {command.name} | ' +
f'{interaction.user.name}#{interaction.user.discriminator} ({interaction.user.id}) | ' +
f'{interaction.user.name} ({interaction.user.id}) | ' +
f'{interaction.guild_id}-{interaction.channel_id}-{interaction.id}'
)

Expand Down
2 changes: 1 addition & 1 deletion src/cogs/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ async def view(self, interaction: discord.Interaction, user: discord.Member = No
color=osu_user['profile_colour'],
url=f'https://osu.ppy.sh/users/{osu_user["id"]}'
)
embed.set_author(name=f'{user.name}#{user.discriminator}', icon_url=user.avatar)
embed.set_author(name=user.name, icon_url=user.avatar)
embed.set_thumbnail(url=osu_user['avatar_url'])
embed.description = f'**ID**: {osu_user["id"]}\n**Registered gamemode**: {gamemode.name}\n' + \
f'{self.bot.emoji["osu_ss_silver"]}{ssh_ranks:,} ' + \
Expand Down
2 changes: 1 addition & 1 deletion src/cogs/utils/embed_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def default_footer(interaction: discord.Interaction, embed: discord.Embed) -> di

return embed.set_footer(
icon_url=interaction.user.avatar,
text=f'{interaction.user.name}#{interaction.user.discriminator}'
text=interaction.user.name
)


Expand Down

0 comments on commit 046631e

Please sign in to comment.