Skip to content

brand_color_primary is UNKNOWN_TYPE #2823

@ItsDoome12

Description

@ItsDoome12

General Troubleshooting

  • I have checked for similar issues on the Issue-tracker.
  • 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions