caspian-sdk
Caspian is an open-source SDK and gateway that lets AI agents communicate across multiple channels (Slack, Discord, Telegram, email, etc.) through a single handler, eliminating per-channel adapter code.
It automates a previously manual process of editing Discord profile widgets through a user-installable bot, complete with a Tampermonkey script to enable the experimental widget editor in Developer Portal.
讓 Discord application 擁有者透過 /widget slash command 自訂個人檔案上的「Widgets V2」小工具內容。C# / Discord.Net,user-install bot,資料以 JSON 檔持久化。
⚠️ Widgets V2 是 Social SDK 的實驗功能,本 bot 呼叫的是未文件化端點,Discord 可能隨時變更。且 2026/6/4 起僅 application 擁有者能把 widget 加到自己的個人檔案。
PATCH https://discord.com/api/v9/applications/{appId}/users/{userId}/identities/0/profile
Body: { "data": { "dynamic": [
{ "type": 1, "name": "top-title", "value": "字串" },
{ "type": 3, "name": "top-image", "value": { "url": "https://..." } } ] } }
name 對應 Developer Portal widget 編輯器中設定的 Data Field 名稱(type 1=字串、2=數值、3=圖片)。欄位定義集中在 WidgetService.cs 的 StringField / ImageField enum([ChoiceDisplay] 即 API 欄位名),指令選項自動由 enum 產生,改欄位只需要動 enum。
| 區塊 | 字串欄位(type 1) | 圖片欄位(type 3) |
|---|---|---|
| Widget Top | top-title、top-sub-title-1 | top-image、top-sub-icon-1 |
| Widget Bottom(項目 1–4) | bottom-name-N、bottom-description-N | bottom-image-N |
| Mini Profile | mini-profile-stat-text | mini-profile-stat-icon、mini-profile-contained-image |
DevTools console 腳本
let _mods = webpackChunkdiscord_developers.push([[Symbol()],{},r=>r.c]);
webpackChunkdiscord_developers.pop();
let findByProps = (...props) => {
for (let m of Object.values(_mods)) {
try {
if (!m.exports || m.exports === window) continue;
if (props.every((x) => m.exports?.[x])) return m.exports;
for (let ex in m.exports) {
if (props.every((x) => m.exports?.[ex]?.[x]) && m.exports[ex][Symbol.toStringTag] !== 'IntlMessagesProxy') return m.exports[ex];
}
} catch {}
}
}
findByProps("getAll").getAll().find(e=>e.getName() === "ApexExperimentStore").createOverride("2026-03-widget-config-editor", 1)
(跑完腳本後記得點左上角的倒退箭頭再重新點到你的應用程式頁面,切記不可重整頁面,不然腳本會被覆寫)
https://discord.com 後保存openid 以及 sdk.social_layer → 選擇重新導向的 URI 選擇剛剛設定的重新導向網址(應該要是 https://discord.com)Similar projects matched by category, topics, and programming language.
Caspian is an open-source SDK and gateway that lets AI agents communicate across multiple channels (Slack, Discord, Telegram, email, etc.) through a single handler, eliminating per-channel adapter code.
A Windows tool that uses WinDivert and zapret strategies to bypass DPI censorship for Discord, YouTube, Telegram, and other online services.
WidgetRelay is a Tasker plugin that reads text and JSON from Android home screen widgets and can click their elements, all without a launcher.