Let handleEventWebhook handle webhook message deletions

This commit is contained in:
cryox-dev
2023-12-13 14:34:39 +13:00
committed by GitHub
parent 103b33f77d
commit b321268499

View File

@@ -278,7 +278,7 @@ func (b *Bdiscord) Send(msg config.Message) (string, error) {
// Use webhook to send the message
useWebhooks := b.shouldMessageUseWebhooks(&msg)
if useWebhooks && msg.Event != config.EventMsgDelete && msg.ParentID == "" {
if useWebhooks && msg.ParentID == "" {
return b.handleEventWebhook(&msg, channelID)
}