Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
greeeen-dev committed Jun 22, 2024
1 parent eb68fe3 commit cce9bb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1190,13 +1190,13 @@ async def send(self, room: str, message: nextcord.Message or revolt.Message,
try:
if reply_msg.source=='revolt':
user = self.bot.revolt_client.get_user(reply_msg.author_id)
author_text = f'@{user.global_name or user.name}'
author_text = f'@{user.display_name or user.name}'
elif reply_msg.source=='guilded':
user = self.bot.guilded_client.get_user(reply_msg.author_id)
author_text = f'@{user.name}'
else:
user = self.bot.get_user(int(reply_msg.author_id))
author_text = f'@{user.global_name}'
author_text = f'@{user.global_name or user.name}'
if f'{reply_msg.author_id}' in list(self.bot.db['nicknames'].keys()):
author_text = '@'+self.bot.db['nicknames'][f'{reply_msg.author_id}']
except:
Expand Down

0 comments on commit cce9bb3

Please sign in to comment.