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(); }