|
1 | | -__version__ = "3.7.10" |
| 1 | +__version__ = "3.7.11" |
2 | 2 |
|
3 | 3 |
|
4 | 4 | import asyncio |
@@ -559,7 +559,7 @@ async def on_ready(self): |
559 | 559 | ] |
560 | 560 | if any(other_guilds): |
561 | 561 | logger.warning( |
562 | | - "The bot is in more servers other than the main and staff server." |
| 562 | + "The bot is in more servers other than the main and staff server. " |
563 | 563 | "This may cause data compromise (%s).", |
564 | 564 | ", ".join(guild.name for guild in other_guilds), |
565 | 565 | ) |
@@ -729,8 +729,16 @@ async def is_blocked( |
729 | 729 |
|
730 | 730 | member = self.guild.get_member(author.id) |
731 | 731 | if member is None: |
732 | | - logger.debug("User not in guild, %s.", author.id) |
733 | | - else: |
| 732 | + # try to find in other guilds |
| 733 | + for g in self.guilds: |
| 734 | + member = g.get_member(author.id) |
| 735 | + if member: |
| 736 | + break |
| 737 | + |
| 738 | + if member is None: |
| 739 | + logger.debug("User not in guild, %s.", author.id) |
| 740 | + |
| 741 | + if member is not None: |
734 | 742 | author = member |
735 | 743 |
|
736 | 744 | if str(author.id) in self.blocked_whitelisted_users: |
@@ -1379,10 +1387,6 @@ async def on_error(self, event_method, *args, **kwargs): |
1379 | 1387 |
|
1380 | 1388 | async def on_command_error(self, context, exception): |
1381 | 1389 | if isinstance(exception, commands.BadUnionArgument): |
1382 | | - logger.error("Expected exception:", exc_info=exception) |
1383 | | - msg = "Could not find the specified " + human_join( |
1384 | | - [c.__name__ for c in exception.converters] |
1385 | | - ) |
1386 | 1390 | await context.trigger_typing() |
1387 | 1391 | await context.send(embed=discord.Embed(color=self.error_color, description=msg)) |
1388 | 1392 |
|
@@ -1535,7 +1539,7 @@ async def autoupdate(self): |
1535 | 1539 | color=self.main_color, |
1536 | 1540 | ) |
1537 | 1541 | await channel.send(embed=embed) |
1538 | | - await self.logout() |
| 1542 | + await self.logout() |
1539 | 1543 |
|
1540 | 1544 | async def before_autoupdate(self): |
1541 | 1545 | await self.wait_for_connected() |
|
0 commit comments