1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-11-30 08:08:13 +00:00

example/undeleter: Fix AddSyncHandler

This commit is contained in:
diamondburned 2021-11-03 15:43:07 -07:00
parent 477695f2e6
commit accb2fc52b
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -26,8 +26,7 @@ func main() {
// Make a pre-handler
s.PreHandler = handler.New()
s.PreHandler.Synchronous = true
s.PreHandler.AddHandler(func(c *gateway.MessageDeleteEvent) {
s.PreHandler.AddSyncHandler(func(c *gateway.MessageDeleteEvent) {
// Grab from the state
m, err := s.Message(c.ChannelID, c.ID)
if err != nil {