JDA icon indicating copy to clipboard operation
JDA copied to clipboard

Guild Welcome Screen Modification

Open Aseeef opened this issue 3 years ago • 1 comments

General Troubleshooting

  • [X] I have checked for similar issues.
  • [x] I have updated to the [latest JDA version][download].
  • [X] I have checked the branches or the maintainers' PRs for upcoming features.

Feature Request

I am requesting API support for modifying the guild welcome screen as documented here: https://discord.com/developers/docs/resources/guild#modify-guild-welcome-screen

Example Use-Case

I personally wanted to use this for a discord "clone" / "backup" bot.

The API may go something like this for retrieving welcome screen info: boolean b = guild.getWelcomeScreen().getEnabled(); List<WelcomeChannel> wc = guild.getWelcomeScreen().getWelcomeChannels(); String desc = guild.getWelcomeScreen().getDescription();

And for updating, maybe something like: guild.getWelcomeScreen().updateEnabled(boolean); guild.getWelcomeScreen().updateWelcomeChannels(List<WelcomeChannel>); guild.getWelcomeScreen().updateDescription(String);

WelcomeChannel might be a subclass TextChannel adding the addition parameter's of their structure as specified in the discord API: https://discord.com/developers/docs/resources/guild#welcome-screen-object-welcome-screen-channel-structure

Aseeef avatar Jan 13 '22 20:01 Aseeef

Is there any way we could retrieve information about Membership Screening?

MAXOUXAX avatar Feb 21 '22 16:02 MAXOUXAX

Support for this has been added in 5.0.0-beta.2

MinnDevelopment avatar Dec 08 '22 13:12 MinnDevelopment