Skip to content

Commit

Permalink
Fix wrong implementation for Message#removeEmbeds
Browse files Browse the repository at this point in the history
  • Loading branch information
feddevanderlist authored and felldo committed Apr 3, 2023
1 parent 658b0d1 commit 6cc43c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ static CompletableFuture<Message> removeEmbed(DiscordApi api, String channelId,
* @return A future to check if the removal was successful.
*/
default CompletableFuture<Message> removeEmbed() {
return new MessageUpdater(this).addEmbeds(Collections.emptyList()).applyChanges();
return new MessageUpdater(this).removeAllEmbeds().applyChanges();
}

/**
Expand Down

0 comments on commit 6cc43c8

Please sign in to comment.