mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-12-11 14:58:25 +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) {
|
public CompletableFuture<Void> deleteMessageById(long id, boolean webhookMessage) {
|
||||||
CompletableFuture<Void> future;
|
CompletableFuture<Void> future;
|
||||||
if (webhookMessage) {
|
if (webhookMessage) {
|
||||||
future = discordSRV.discordAPI()
|
future = queryWebhookClient().thenCompose(client -> client.deleteMessageById(id).submit());
|
||||||
.queryWebhookClient(channel.getIdLong())
|
|
||||||
.thenCompose(client -> client.deleteMessageById(id).submit());
|
|
||||||
} else {
|
} else {
|
||||||
future = channel.deleteMessageById(id).submit();
|
future = channel.deleteMessageById(id).submit();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user