fix: do not send forwarded messages

This commit is contained in:
devilreef 2026-01-08 23:03:20 +06:00
parent 53177e554f
commit 790abfd692
2 changed files with 81 additions and 0 deletions

View file

@ -18,6 +18,10 @@ async function handleMessage(message: Message): Promise<void> {
if (!message.guild)
return
// Skip forwarded messages
if ((message.reference as any)?.type === 'FORWARD')
return
const serverConfig = config.servers.find((s: { guildId: string }) => s.guildId === message.guild!.id)
if (!serverConfig)
return