Skip to content

Commit

Permalink
Remove '@' from discord usernames
Browse files Browse the repository at this point in the history
  • Loading branch information
vlee489 committed Oct 21, 2023
1 parent aef4841 commit 01fc4f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radia/battlefy/objects/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ def __init__(self, battlefy, discord_field, fc_field):
self.member_converter = commands.MemberConverter()
self.discord = discord_field
if self.discord:
self.discord = discord_field.replace('@', '')
if self.discord.endswith("#0000"):
self.discord = self.discord[:-5]
elif self.discord.endswith("#0"):
self.discord = self.discord[:-2]
# self.discord = self.discord.lower()
self.fc = fc_field

async def get_discord(self, ctx):
Expand Down

0 comments on commit 01fc4f4

Please sign in to comment.