Skip to content

Commit

Permalink
Swapped manage server and manage channel in Invite#isExpanded docs (#…
Browse files Browse the repository at this point in the history
…1210)

Guild#retrieveInvites requires permission MANAGE_SERVER and Channel#retrieveInvites requires MANAGE_CHANNEL.
  • Loading branch information
danthe1st committed Mar 1, 2020
1 parent b8a716d commit 9c2d236
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/net/dv8tion/jda/api/entities/Invite.java
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,10 @@ default String getUrl()

/**
* Whether this Invite is expanded or not. Expanded invites contain more information, but they can only be
* obtained be {@link net.dv8tion.jda.api.entities.Guild#retrieveInvites() Guild#retrieveInvites()} (requires
* {@link net.dv8tion.jda.api.Permission#MANAGE_CHANNEL Permission.MANAGE_CHANNEL}) or
* {@link GuildChannel#retrieveInvites() Channel#retrieveInvites()} (requires
* {@link net.dv8tion.jda.api.Permission#MANAGE_SERVER Permission.MANAGE_SERVER}).
* obtained by {@link net.dv8tion.jda.api.entities.Guild#retrieveInvites() Guild#retrieveInvites()} (requires
* {@link net.dv8tion.jda.api.Permission#MANAGE_SERVER Permission.MANAGE_SERVER}) or
* {@link net.dv8tion.jda.api.entities.GuildChannel#retrieveInvites() GuildChannel#retrieveInvites()} (requires
* {@link net.dv8tion.jda.api.Permission#MANAGE_CHANNEL Permission.MANAGE_CHANNEL}).
*
* <p>There is a convenience method {@link #expand()} to get the expanded invite for an unexpanded one.
*
Expand Down

0 comments on commit 9c2d236

Please sign in to comment.