diff --git a/src/utils/resolveMessage.ts b/src/utils/resolveMessage.ts index 4540898..2d37e24 100644 --- a/src/utils/resolveMessage.ts +++ b/src/utils/resolveMessage.ts @@ -20,8 +20,8 @@ function findFirstImage(message: Message): string | undefined { } export async function expandDiscordLink(message: Message): Promise { - if (message.author.bot && !message.author.webhookId) return; - + if (message.author.bot && !message.webhookId) return; + const re = /(https?:\/\/)?(?:canary\.|ptb\.)?discord(?:app)?\.com\/channels\/(?\d+)\/(?\d+)\/(?\d+)/g;