JDA
                                
                                 JDA copied to clipboard
                                
                                    JDA copied to clipboard
                            
                            
                            
                        Add GuildManager#setFeatures
Pull Request Etiquette
- [x] I have checked the PRs for upcoming features/bug fixes.
- [x] I have read the contributing guidelines.
Changes
- [ ] Internal code
- [x] Library interface (affecting end-user code)
- [ ] Documentation
- [ ] Other: _____
Closes Issue: NaN
Description
This can be used to pause invites in a guild.
Example
List<String> features = new ArrayList<>(guild.getFeatures());
features.add("INVITES_DISABLED");
guild.getManager().setFeatures(features).queue();
Supposedly this is just an experiment according to https://github.com/discord/discord-api-docs/pull/5269#issuecomment-1229050375
https://github.com/discord/discord-api-docs/pull/5270 is relevant here
This is definitely the bare minimum of what we could provide to do this, but it feels.. not great.
Like, regardless of the actual implementation of how discord is representing these toggles, it feels like this should be
isInvitesPaused and setInvitesPaused(Boolean)
The relevant Discord Docs PR has been merged. Doesn't appear to be an experiment