chore: don't use Message::is_own()

This commit is contained in:
seth 2024-09-08 22:40:08 -04:00
parent d6d5b25b9c
commit d42eb94ce5
No known key found for this signature in database
GPG key ID: D31BD0D494BBEE86

View file

@ -42,7 +42,7 @@ pub async fn handle(
// ignore new messages from bots
// note: the webhook_id check allows us to still respond to PK users
if (new_message.author.bot && new_message.webhook_id.is_none())
|| new_message.is_own(ctx)
|| (new_message.author == **ctx.cache.current_user())
{
trace!("Ignoring message {} from bot", new_message.id);
return Ok(());