Add multi-guild Discord bot support with auto-setup
- Bot creates category and channels automatically when joining a server - Channel structure: info, status, alerts, updates, diskussion, requests (forum) - Add guild_settings database table for per-server configuration - Add Discord bot invite button to Dashboard - Add display settings API functions - Add comprehensive Discord bot documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -249,3 +249,27 @@ export async function getActivityLog(token, limit = 100) {
|
||||
headers: { Authorization: `Bearer ${token}` },
|
||||
})
|
||||
}
|
||||
|
||||
// Display Settings
|
||||
export async function getAllDisplaySettings(token) {
|
||||
return fetchAPI('/servers/display-settings', {
|
||||
headers: token ? { Authorization: `Bearer ${token}` } : {},
|
||||
})
|
||||
}
|
||||
|
||||
export async function getDisplaySettings(token, serverId) {
|
||||
return fetchAPI(`/servers/${serverId}/display-settings`, {
|
||||
headers: { Authorization: `Bearer ${token}` },
|
||||
})
|
||||
}
|
||||
|
||||
export async function saveDisplaySettings(token, serverId, address, hint) {
|
||||
return fetchAPI(`/servers/${serverId}/display-settings`, {
|
||||
method: 'PUT',
|
||||
headers: { Authorization: `Bearer ${token}` },
|
||||
body: JSON.stringify({ address, hint }),
|
||||
})
|
||||
}
|
||||
|
||||
// Alias for backwards compatibility
|
||||
export const setDisplaySettings = saveDisplaySettings
|
||||
|
||||
Reference in New Issue
Block a user