Skip to content

Feat/disconnect message#359

Closed
TheBjoRedCraft wants to merge 4 commits into
version/26.1from
feat/disconnect-message
Closed

Feat/disconnect message#359
TheBjoRedCraft wants to merge 4 commits into
version/26.1from
feat/disconnect-message

Conversation

@TheBjoRedCraft
Copy link
Copy Markdown
Member

No description provided.

- implement buildDisconnectComponent function for customizable disconnect messages
- support parameters for reason, details, issue footer, retry footer, and Discord link
Copilot AI review requested due to automatic review settings May 27, 2026 13:51
@TheBjoRedCraft TheBjoRedCraft self-assigned this May 27, 2026
@mergify mergify Bot added the conflict label May 27, 2026
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented May 27, 2026

👋 TheBjoRedCraft your PR is conflicting and needs to be updated to be merged

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new helper in surf-api-core to build structured disconnect/kick-style messages via the SurfComponentBuilder DSL, and bumps the project version for release.

Changes:

  • Added CommonComponents.buildDisconnectComponent(...) for composing disconnect messages with configurable details and optional footers.
  • Switched CommonComponents.kt adventure imports to dev.slne.surf.api.core.messages.adventure.*.
  • Bumped version from 3.13.0 to 3.13.1.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
surf-api-core/surf-api-core/src/main/kotlin/dev/slne/surf/api/core/messages/CommonComponents.kt Introduces the new disconnect component builder helper and adjusts related imports.
gradle.properties Increments the project version to 3.13.1.

appendNewline(2)
error(reason)
appendNewline(3)
append(details).color(SPACER)
Comment on lines +515 to +526
if (issue) {
append(ISSUE_FOOTER)
}

if (retryLater) {
append(RETRY_LATER_FOOTER)
}

if (onlyDiscordLink) {
appendNewline(2)
primary("discord.gg/castcrafter")
}
Comment on lines +506 to +510
appendNewline(2)
primary("CASTCRAFTER")
appendNewline()
primary("COMMUNITY SERVER")
appendNewline(2)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@mergify mergify Bot removed the conflict label May 27, 2026
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ API/ABI changes detected!

This PR contains changes that modified the public API. To update the reference ABI dumps:

./gradlew updateKotlinAbi
git add **/api/**
git commit -m "Update ABI reference"
git push

After updating, the CI will pass. Make sure the changes are backward compatible.

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ API/ABI changes detected!

This PR contains changes that modified the public API. To update the reference ABI dumps:

./gradlew updateKotlinAbi
git add **/api/**
git commit -m "Update ABI reference"
git push

After updating, the CI will pass. Make sure the changes are backward compatible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants