discord-app-setup

Connect a Discord bot to an assistant via the Discord Gateway with guided setup.

1|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/Logarn/Worklin-ai --skill discord-app-setup-logarn
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: discord-app-setup
Source: https://github.com/Logarn/Worklin-ai/tree/main/skills/discord-app-setup
Command: npx skills add https://github.com/Logarn/Worklin-ai --skill discord-app-setup-logarn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Setting up a Discord bot involves many error-prone manual steps across the Discord Developer Portal: creating an application, enabling privileged gateway intents, generating a one-time-view bot token, and building a correct OAuth2 invite URL. This Skill walks the user through each step in strict order and automates the credential storage, token validation, and invite URL generation. ## Core Features & Use Cases - Guided Step-by-Step Setup: Walks the user through application creation, privileged intent configuration (Message Content, Server Members), token generation, and server invitation in a strict sequence. - Secure Credential Handling: Collects the bot token only through the assistant's secure credential prompt and stores it under discord_channel:bot_token, never accepting tokens pasted in plaintext chat. - Token Validation & Identity Discovery: Validates the stored token against Discord's REST API (/users/@me, /oauth2/applications/@me) and derives the application ID and public key on demand. - Least-Privilege Invite URL: Generates an OAuth2 invite URL with a minimal permission integer, deliberately excluding Administrator and other sensitive permissions. - Use Case: A user wants their personal assistant to read and respond to messages in their Discord server. The Skill checks existing configuration, guides portal setup, securely stores the token, validates it, and produces the invite link. ## Quick Start Ask the assistant to set up the Discord integration and follow the guided steps to create the application, configure intents, store the bot token, and invite the bot to your server.

Frequently Asked Questions about discord-app-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect a Discord bot to my assistant?▼

Create an application in the Discord Developer Portal, enable the Message Content and Server Members privileged intents on the Bot page, then generate and store the bot token through the assistant's secure credential prompt. Finally, use the generated OAuth2 invite URL to add the bot to your server.

How do I generate a Discord bot invite URL with the right permissions?▼

The print-invite-url script discovers the application ID via Discord's /oauth2/applications/@me endpoint and builds an invite URL with a least-privilege permission integer. It includes messaging and slash command permissions but excludes Administrator, Manage Channels, and Kick/Ban Members.

Why does my Discord bot get a 401 Unauthorized error?▼

A 401 means the bot token is invalid, was reset, or was copied incorrectly. Reset the token in the Developer Portal, store the new one via the secure credential prompt, and re-run the validate-token script to confirm.

What does the Discord 'Disallowed intents' gateway error 4014 mean?▼

Error 4014 means the bot is connecting with a privileged intent that is not enabled on the application. Enable Message Content Intent and Server Members Intent under Bot settings in the Developer Portal, save changes, and the next gateway reconnect will succeed.

Does the Discord bot token expire or need renewal?▼

Discord bot tokens do not expire automatically. However, resetting the token in the Developer Portal immediately invalidates the old one, and deleting the application revokes all its tokens.

Should I enable the Presence Intent for my Discord bot?▼

Only enable Presence Intent if the assistant has a feature that consumes presence updates. Presence data is privacy-sensitive, and Discord requires verification and intent whitelisting once the bot reaches 100 or more servers.