Fix incorrect webhook payload being sent in the new SetMessageVisibilityEvent
This commit is contained in:
@@ -31,7 +31,7 @@ func SetMessagesVisibility(messageIDs []string, visibility bool) error {
|
||||
|
||||
// Send webhook
|
||||
wh := webhooks.WebhookEvent{
|
||||
EventData: event,
|
||||
EventData: payload,
|
||||
Type: event.GetMessageType(),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user