From 014a022fbdaeec7069735fe6433423ffab7e9fb9 Mon Sep 17 00:00:00 2001 From: Vankka Date: Mon, 10 Jul 2023 18:26:48 +0300 Subject: [PATCH] Fix another derp in deleteMessageById --- .../entity/channel/AbstractDiscordGuildMessageChannel.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/src/main/java/com/discordsrv/common/discord/api/entity/channel/AbstractDiscordGuildMessageChannel.java b/common/src/main/java/com/discordsrv/common/discord/api/entity/channel/AbstractDiscordGuildMessageChannel.java index 07c5a77f..bb8fc49a 100644 --- a/common/src/main/java/com/discordsrv/common/discord/api/entity/channel/AbstractDiscordGuildMessageChannel.java +++ b/common/src/main/java/com/discordsrv/common/discord/api/entity/channel/AbstractDiscordGuildMessageChannel.java @@ -128,9 +128,7 @@ public abstract class AbstractDiscordGuildMessageChannel deleteMessageById(long id, boolean webhookMessage) { CompletableFuture future; if (webhookMessage) { - future = discordSRV.discordAPI() - .queryWebhookClient(channel.getIdLong()) - .thenCompose(client -> client.deleteMessageById(id).submit()); + future = queryWebhookClient().thenCompose(client -> client.deleteMessageById(id).submit()); } else { future = channel.deleteMessageById(id).submit(); }