From db93991c41ca2c7af9edfa03c8b10200da12957a Mon Sep 17 00:00:00 2001 From: MatthieuCoder Date: Sat, 14 Jan 2023 19:06:14 +0400 Subject: add tests --- exes/webhook/src/handler/mod.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'exes/webhook/src') 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(); -- cgit v1.2.3