Skip to content
Success

Changes

Summary

  1. Added Invites (#223) (commit: 240adf3) (details)
Commit 240adf3364de532aff1d5e08c84f320bba529142 by noreply
Added Invites (#223)
* Added Invites
* Fixed permission checking
* Added checks and changed how invite expanding works
* Added Invite.Guild and Invite.Channel
* Added javadoc
* Made proposed changes
* Fixed NPE when guild icon is null
* Added JDAClient#acceptInvite()
* Removed old commented out invite code from JDA 2.0
* Added Invite#delete()
* Fixed a spelling mistake in javadoc and added Invite#getJDA()
* Added Channel#createInvite() and InviteAction
* Added missing javadoc
* Added copyright headers
* Removed old commented out imports
* Added Invite#accept() and JDAClient#acceptInvite(String) and made the
rest of the requested changes
* Fixed invite related docs
* Added InviteAction#setMaxAge(long, TimeUnit) overload,
fixed an NPE when resetting maxAge and maxUses to default and
added missing @throws
(commit: 240adf3)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/handle/GuildMemberRemoveHandler.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/entities/EntityBuilder.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/entities/impl/GuildImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/entities/Guild.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/handle/MessageCreateHandler.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/entities/impl/TextChannelImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/entities/Channel.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/core/entities/impl/InviteImpl.java
The file was modifiedsrc/main/java/net/dv8tion/jda/core/requests/RestAction.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/entities/impl/VoiceChannelImpl.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/entities/MessageChannel.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/core/entities/Invite.java
The file was addedsrc/main/java/net/dv8tion/jda/core/requests/restaction/InviteAction.java
The file was modifiedsrc/main/java/net/dv8tion/jda/client/JDAClient.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/entities/PermissionOverride.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/client/entities/impl/JDAClientImpl.java (diff)