mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-12-03 13:43:33 +01:00
Fix another derp in deleteMessageById
This commit is contained in:
parent
7cd796ab2b
commit
014a022fbd
@ -128,9 +128,7 @@ public abstract class AbstractDiscordGuildMessageChannel<T extends GuildMessageC
|
||||
public CompletableFuture<Void> deleteMessageById(long id, boolean webhookMessage) {
|
||||
CompletableFuture<Void> 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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user