JDA
JDA copied to clipboard
brand_color_primary is UNKNOWN_TYPE
General Troubleshooting
- [x] I have checked for similar issues on the Issue-tracker.
- [x] I have checked for PRs that might already address this issue.
Version of JDA
5.3.0
Expected Behaviour
When you listen to the audit in the guild, when changing the banner color, it gives UNKNOWN, although it should be GUILD_UPDATE
Code Example for Reproduction Steps
@Override
public void onGuildAuditLogEntryCreate(@NotNull GuildAuditLogEntryCreateEvent event) {
System.out.println("TargetType: " + event.getEntry().getTargetType());
System.out.println("Changes: " + event.getEntry().getChanges());
}
Code for JDABuilder or DefaultShardManagerBuilder used
JDA jda = JDABuilder.createDefault(token).enableIntents(EnumSet.of(GUILD_MEMBERS, MESSAGE_CONTENT, GUILD_PRESENCES) )
.setEventPassthrough(true)
.setMemberCachePolicy(MemberCachePolicy.ALL)
.setChunkingFilter(ChunkingFilter.ALL)
.setAutoReconnect(true)
.build();
jda.addEventListener(new Audit());
Exception or Error
none
This is actually a new action of type guild profile update, which is currently undocumented by Discord.
I've opened pull request to get this documented: https://github.com/discord/discord-api-docs/pull/7931