JDA icon indicating copy to clipboard operation
JDA copied to clipboard

Add GuildManager#setFeatures

Open MinnDevelopment opened this issue 3 years ago • 3 comments

Pull Request Etiquette

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

MinnDevelopment avatar Aug 24 '22 14:08 MinnDevelopment

https://github.com/discord/discord-api-docs/pull/5270 is relevant here

advaith1 avatar Aug 29 '22 22:08 advaith1

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)

DV8FromTheWorld avatar Aug 30 '22 15:08 DV8FromTheWorld

The relevant Discord Docs PR has been merged. Doesn't appear to be an experiment

CheesyGamer77 avatar Sep 14 '22 15:09 CheesyGamer77