Discord Bot

Live

API KEY

COMMUNITY OPS

Communication

Guilds, channels, members, roles, and message history are the community surface your agent works on, reached with a Discord bot token Scalekit vaults per tenant.

  • One vaulted bot token: the Discord API key stays in the vault, resolved at request time, never pasted into a prompt or a config file.
  • Credentials stay vaulted: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: User permissions enforced. 90-day audit trail.
Discord Bot
agent · Acme Q3
Run
Who posted in #support in the last hour and is anyone still unanswered?
S
discordbot_list_channel_messages
104ms
Community agent
11 messages from 6 members. Two threads have no reply: a webhook 401 from @dana and a billing question from @arjun.
Sources: 1 channel, 11 messages, 6 members
discordbot
11 messages
18:29
Message Claude...

Tools your messaging agent reaches for on Discord Bot, scoped per tenant.

CALL ANY TOOL
Community ops from one API key: guilds, channels, members, roles, messages, threads, webhooks, and moderation rules. The token is vaulted, never in LLM context.
discordbot_action_guild_join_request
Action guild join request
Approve or reject a pending membership screening join request for a guild. Requires MANAGE_GUILD permission. rejection_reason is only used when action is REJECTED. Returns the updated guild join request object on success.
Parameters
Name
Type
Required
Description
action
string
Required
Whether to approve or reject the join request.
guild_id
string
Required
The ID of the guild.
request_id
string
Required
The ID of the join request to act on.
rejection_reason
string
Optional
Reason for rejection, shown to the applicant. Only used when action is REJECTED (up to 160 characters).
discordbot_add_guild_member
Add guild member
discordbot_bulk_delete_messages
Bulk delete messages
discordbot_bulk_update_lobby_members
Bulk update lobby members
discordbot_create_application_emoji
Create application emoji
discordbot_create_guild_channel
Create guild channel
discordbot_create_lobby
Create lobby
discordbot_delete_channel_permission
Delete channel permission
discordbot_delete_guild_scheduled_event
Delete guild scheduled event
discordbot_delete_own_reaction
Delete own reaction
discordbot_edit_channel_permissions
Edit channel permissions
discordbot_execute_github_compatible_webhook
Execute github compatible webhook
discordbot_follow_announcement_channel
Follow announcement channel
discordbot_get_answer_voters
Get answer voters
discordbot_get_gateway
Get gateway
discordbot_get_guild_preview
Preview get guild
discordbot_get_invite_target_users
Get invite target users
discordbot_group_dm_remove_recipient
Group dm remove recipient
discordbot_list_active_guild_threads
List active guild threads
discordbot_list_guild_emojis
List guild emojis
discordbot_list_private_archived_threads
List private archived threads
discordbot_modify_channel
Modify channel
discordbot_modify_guild_member
Modify guild member
discordbot_modify_guild_widget
Modify guild widget
discordbot_search_guild_members
Search guild members
discordbot_send_lobby_message
Send lobby message
discordbot_set_voice_channel_status
Set voice channel status
discordbot_start_thread_from_message
Start thread from message
discordbot_sync_guild_template
Sync guild template
discordbot_trigger_typing
Trigger typing

For more tools, view docs.

Build your Agent
Drop the toolkit in, point it at the tenant, and your agent can read channels and post replies from the first run.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { DynamicStructuredTool } from "@langchain/core/tools";
import { createReactAgent } from "@langchain/langgraph/prebuilt";
import { z } from "zod";

const sk = new ScalekitClient(envUrl, clientId, clientSecret);

const { tools } = await sk.tools.listScopedTools("user_123", {
filter: { connectionNames: ["discordbot"], toolNames: ["discordbot_list_channel_messages", "discordbot_list_guild_members", "discordbot_create_message"] },
pageSize: 100,
});

const lcTools = tools.map((t) => new DynamicStructuredTool({
name: t.tool.definition.name,
description: t.tool.definition.description,
schema: z.object({}).passthrough(),
func: async (args) => {
const { data } = await sk.tools.executeTool({
toolName: t.tool.definition.name,
identifier: "user_123",
params: args,
});
return JSON.stringify(data);
},
}));

const agent = createReactAgent({ llm, tools: lcTools });
import { ScalekitClient } from "@scalekit-sdk/node";
import OpenAI from "openai";

const sk = new ScalekitClient(envUrl, clientId, clientSecret);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
filter: { connectionNames: ["discordbot"], toolNames: ["discordbot_list_channel_messages", "discordbot_list_guild_members", "discordbot_create_message"] },
pageSize: 100,
});

const llmTools = tools.map((t) => ({
type: "function",
function: {
name: t.tool.definition.name,
description: t.tool.definition.description,
parameters: t.tool.definition.input_schema,
},
}));

const resp = await openai.responses.create({
model: "gpt-4o", input: prompt, tools: llmTools,
});
import { ScalekitClient } from "@scalekit-sdk/node";
import Anthropic from "@anthropic-ai/sdk";

const sk = new ScalekitClient(envUrl, clientId, clientSecret);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
filter: { connectionNames: ["discordbot"], toolNames: ["discordbot_list_channel_messages", "discordbot_list_guild_members", "discordbot_create_message"] },
pageSize: 100,
});

const llmTools = tools.map((t) => ({
name: t.tool.definition.name,
description: t.tool.definition.description,
input_schema: t.tool.definition.input_schema,
}));

const msg = await anthropic.messages.create({
model: "claude-sonnet-4-6", max_tokens: 1024,
tools: llmTools,
messages: [{ role: "user", content: prompt }],
});
import { Agent } from "@google/adk/agents";
import {
MCPToolset, StreamableHTTPConnectionParams,
} from "@google/adk/tools/mcp";

const toolset = new MCPToolset({
connectionParams: new StreamableHTTPConnectionParams({
url: "https://mcp.scalekit.com/discordbot",
headers: { Authorization: `Bearer ${userScopedToken}` },
}),
});

const agent = new Agent({
name: "agent", model: "gemini-2.0-flash",
tools: await toolset.getTools(),
});
Try these prompts
Paste any prompt into your agent to start running Discord community ops from your workflows.
Community triage
Copy the prompt
Copied
Summarize unanswered messages in [channel] from the last 24 hours.
Copy the prompt
Copied
List members who joined this week and have no assigned role.
Copy the prompt
Copied
Find messages in [channel] that mention an error code.
Moderation
Copy the prompt
Copied
Show the auto moderation rules on [guild] and what each one blocks.
Copy the prompt
Copied
Timeout [user_id] for 1 hour and log the reason.
Copy the prompt
Copied
List members with the moderator role on [guild].
Announcements
Copy the prompt
Copied
Post the release notes for v2.4 in [channel] and pin the message.
Copy the prompt
Copied
Create a thread on [message_id] titled Known issues.
Copy the prompt
Copied
Add the reaction eyes to the last message in [channel].
SEE HOW AUTH WORKS
Your users connect once. Their Discord Bot credentials stay vaulted, every call is scope-checked, and every action is logged.
1
Authorize
Your user connects
Discord Bot
once. We tie it to their identity and the meetings they approved — no shared bot account, no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Discord Bot
token lives in a vault scoped to them. User A's meetings are never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tokens:
auto-refreshed
3
Resolve
When your agent calls a
Discord Bot
tool, we fetch the right token server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Discord Bot
tool call is logged — who triggered it, which meeting was fetched, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other connectors.
Engineering Teams
Slack triage
Polls Slack for new messages, classifies bugs and support requests with a LangGraph router, files GitHub issues or Zendesk tickets, and confirms in the thread.
Support and Ops Teams
Support triage agent
Fetches new Zendesk tickets, classifies them by type and urgency, searches the Notion knowledge base for an answer, and routes what it cannot resolve to Slack. Every call runs on the support agent's own delegated OAuth.
Support and Ops Teams
Meeting prep
Pulls agenda, participant context, and open action items before every meeting.
GTM and RevOps Teams
Competitive intelligence briefing agent
Scans Gong calls for competitor mentions, matches each one to its Notion battlecard, and DMs every affected rep a single Slack digest per cycle. Every call runs as the PMM who owns the briefing, never a shared bot.
Test other agents
See the same per-user auth pattern across other connectors.
ENGINEERING
Slack triage agent
Classify new Slack messages as bugs or support requests, file the GitHub issue or Zendesk ticket, and reply in the thread.
SUPPORT
Support triage agent
Classify new Zendesk tickets, search the Notion knowledge base for an answer, and route what it cannot resolve to Slack.
OPS
Meeting prep agent
Assemble the agenda, HubSpot attendee history, and open action items from Gmail before every meeting on the calendar.
GTM
Competitive intelligence briefing agent
Scan Gong calls for competitor mentions, match each one to its Notion battlecard, and DM every affected rep a single Slack digest.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared token looks fine in a demo. In production every call looks like a service account. Scalekit resolves the real user credential so attribution, audit, and scope stay accurate.
// shared token
audit → bot_service_account
user_filter → broken

// scalekit
audit → user_abc
scope → enforced ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Discord Bot today. Others tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Discord Bot as the user or as a shared key?
As the user. Each workspace member authorizes once and Scalekit resolves their credential at request time. Audit logs attribute every action to that user, not a shared service account.
Where is the Discord Bot API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. Refresh is automatic. Revocation is a single dashboard action. Tokens never appear in prompts, logs, or LLM context.
Can I limit what the agent is allowed to do in Discord Bot?
Yes. Pass a tool name filter to listScopedTools so the messaging agent only sees the subset you authorize. Pre-API-call scope checks block out-of-policy actions before the request reaches Discord Bot.
What happens when a user revokes Discord Bot access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Is a Discord bot token shared across all my tenants?
No. Each tenant registers its own bot token and Scalekit stores it in that tenant's namespace of the AES-256 vault. A call for one tenant can never resolve another tenant's token, and revoking one leaves the rest running.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""discordbot"": {
""url"": ""https://mcp.scalekit.com/discordbot"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.discordbot]
url = ""https://mcp.scalekit.com/discordbot""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""discordbot"": {
""url"": ""https://mcp.scalekit.com/discordbot"",
""type"": ""http""
}
}
}