diff options
Diffstat (limited to 'exes/webhook/src/handler/mod.rs')
| -rw-r--r-- | exes/webhook/src/handler/mod.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/exes/webhook/src/handler/mod.rs b/exes/webhook/src/handler/mod.rs index ea7ecca..46a4d9e 100644 --- a/exes/webhook/src/handler/mod.rs +++ b/exes/webhook/src/handler/mod.rs @@ -82,11 +82,9 @@ impl WebhookService { // this should hopefully not fail ? let data = CachePayload { - data: DispatchEventTagged { - data: DispatchEvent::InteractionCreate(Box::new(InteractionCreate( - interaction, - ))), - }, + data: DispatchEventTagged(DispatchEvent::InteractionCreate(Box::new( + InteractionCreate(interaction), + ))), }; let payload = serde_json::to_string(&data).unwrap(); |
