diff options
| author | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2023-01-14 19:06:14 +0400 |
|---|---|---|
| committer | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2023-01-14 19:06:14 +0400 |
| commit | db93991c41ca2c7af9edfa03c8b10200da12957a (patch) | |
| tree | 6c477eac7fc3e08043503294353738d8fe38a217 /exes/webhook/src/handler/mod.rs | |
| parent | 3f342846149c0b1f8d1ac1f0b857a9d9fdf2034b (diff) | |
add tests
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(); |
