INNER CODE UNIT · Python

result

existence-master/Sentient · src/server/mcp_hub/discord/main.py:38

        result = await method_to_call(*args, **kwargs)
        
        return {"status": "success", "result": result}
    except Exception as e:
        logger.error(f"Tool execution failed for method '{method_name}': {e}", exc_info=True)
        return {"status": "failure", "error": str(e)}

@mcp.tool
async def list_guilds(ctx: Context) -> Dict:
    """
    Lists the Discord servers (guilds) that the authenticated user's bot is a member of, returning their names and IDs.
    """
    logger.info("Executing tool: list_guilds")
    return await _execute_tool(ctx, "list_guilds")

@mcp.tool
async def list_channels(ctx: Context, guild_id: str) -> Dict:
    """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…