def METHOD_NAME(self) -> dict[str, object]:
    project = Project.objects.get_from_cache(id=self.group.project_id)
    event_for_tags = self.event or self.group.get_latest_event()
    timestamp = (
        max(self.group.last_seen, self.event.datetime) if self.event else self.group.last_seen
    )
    obj: Group | GroupEvent = self.event if self.event is not None else self.group
    rule_id = None
    if self.rules:
        rule_id = self.rules[0].id
    embeds = [
        DiscordMessageEmbed(
            title=build_attachment_title(obj),
            description=build_attachment_text(self.group, self.event) or None,
            url=get_title_link(
                self.group,
                self.event,
                self.link_to_event,
                self.issue_details,
                self.notification,
                ExternalProviders.DISCORD,
                rule_id,
            ),
            color=LEVEL_TO_COLOR[get_color(event_for_tags, self.notification, self.group)],
            # We can't embed urls in Discord embed footers.
            footer=DiscordMessageEmbedFooter(
                build_footer(self.group, project, self.rules, "{text}")
            ),
            fields=build_tag_fields(event_for_tags, self.tags),
            timestamp=timestamp,
        )
    ]
    components = build_components(self.group, project)
    return self._build(embeds=embeds, components=components)