diff --git a/botto/tld_botto.py b/botto/tld_botto.py index 40dc13b..3d6a7d0 100644 --- a/botto/tld_botto.py +++ b/botto/tld_botto.py @@ -443,7 +443,10 @@ async def on_message(self, message: Message): webhook = await self.fetch_webhook(webhook_id) if webhook.type != discord.WebhookType.incoming: return - except discord.NotFound | discord.Forbidden: + except discord.NotFound: + if message.author.id == self.user.id: + return + except discord.Forbidden: pass if message.author.id == self.user.id: log.debug(f"Ignoring message {message.id} from self")