Skip to main content
Discord is an instant messaging, voice, and video communication platform widely used by communities of all types.

Installation and Setup

Install the langchain-discord-shikenso package:
You must provide a bot token via environment variable so the tools can authenticate with the Discord API:
If DISCORD_BOT_TOKEN is not set, the tools will raise a ValueError when instantiated.

Tools

Below is a snippet showing how you can read and send messages in Discord. For more details, see the documentation for Discord tools.

Toolkit

DiscordToolkit groups multiple Discord-related tools into a single interface. For a usage example, see the Discord toolkit docs.

Future Integrations

Additional integrations (e.g., document loaders, chat loaders) could be added for Discord. Check the Discord Developer Docs for more information, and watch for updates or advanced usage examples in the langchain_discord GitHub repo.