Skip to content

Commit

Permalink
pass server obj
Browse files Browse the repository at this point in the history
  • Loading branch information
greeeen-dev committed Sep 27, 2024
1 parent b173e7c commit ccc288d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cogs/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1357,11 +1357,13 @@ async def edit(self, message, content):

threads = []

server = self.__bot.get_guild(int(msg.guild_id))

async def edit_discord(msgs,friendly=False):
threads = []

if friendly:
text = await self.make_friendly(content, msg.source)
text = await self.make_friendly(content, msg.source, server=server)
else:
text = content

Expand Down Expand Up @@ -1390,7 +1392,7 @@ async def edit_others(msgs,target,friendly=False):
dest_support = self.__bot.platforms[target]
if friendly:
if msg.source == 'discord':
text = await self.make_friendly(content, msg.source)
text = await self.make_friendly(content, msg.source, server=server)
else:
text = await source_support.make_friendly(content)
else:
Expand Down

0 comments on commit ccc288d

Please sign in to comment.