[PR #5462] [MERGED] Discord bridge: post under the webhook's own identity #6303

Closed
opened 2026-11-03 06:18:01 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5462
Author: @ludovic111
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @ludovic111

Base: main ← Head: fix/discord-bridge-one-identity


📝 Commits (1)

  • c07986d Discord bridge: post every line under the webhook's own identity

📊 Changes

2 files changed (+6 additions, -28 deletions)

View changed files

📝 crates/horizon-server/src/discord.rs (+3 -25)
📝 docs/hosting.md (+3 -3)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

The official server's admin asked for every #server-chat post to come from one webhook identity (the webhook's own name and avatar, set in Discord: "HorizonSMP") instead of a per-player name and head. This drops the per-player username/avatar_url from the payload, and the Line field that only fed it. Mentions stay disabled; players are still named by their account name in the picture. docs/hosting.md updated.

Checks: cargo fmt, cargo clippy -p horizon-server --all-targets -D warnings clean, cargo test -p horizon-server discord 5/5.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/5462 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/discord-bridge-one-identity` --- ### 📝 Commits (1) - [`c07986d`](https://github.com/horizon-rust/horizon/commit/c07986d5d67e05afd4ba82f20c824ffbc429ac03) Discord bridge: post every line under the webhook's own identity ### 📊 Changes **2 files changed** (+6 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-server/src/discord.rs` (+3 -25) 📝 `docs/hosting.md` (+3 -3) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. The official server's admin asked for every #server-chat post to come from one webhook identity (the webhook's own name and avatar, set in Discord: "HorizonSMP") instead of a per-player name and head. This drops the per-player `username`/`avatar_url` from the payload, and the `Line` field that only fed it. Mentions stay disabled; players are still named by their account name in the picture. docs/hosting.md updated. Checks: `cargo fmt`, `cargo clippy -p horizon-server --all-targets -D warnings` clean, `cargo test -p horizon-server discord` 5/5. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:18:01 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#6303
No description provided.