Skip to content

Delete invite #2058

Mar 18, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

You first use Invite#resolve, to resolve the invite.
After that, a flatmap where you call the delete method on Invite

Invite.resolve(jda, inviteCode).flatmap(Invite::delete).queue();

Something like this should work

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@redstonepro109
Comment options

@redstonepro109
Comment options

@Tais993
Comment options

Answer selected by redstonepro109
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants