fix: do not send forwarded messages
This commit is contained in:
parent
53177e554f
commit
790abfd692
2 changed files with 81 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue