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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
}