> For the complete documentation index, see [llms.txt](https://actlysai.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://actlysai.gitbook.io/docs/supported-protocols-and-platforms/apps/discord.md).

# Discord

AI agents can manage Discord servers, channels, and messages through the bot. Here are the main things you can do, with examples:

### 1. Servers and channels

List servers, channels, and threads.

Examples:

* Fetch all guilds (servers) the bot has access to.
* View all channels in a Discord server.
* Fetch all channels the bot can see.
* Fetch all active threads in a server, including public and private.

### 2. Messages

Send messages to channels, threads, or DMs.

Examples:

* Send “Hello team!” to #general.
* Send reply “On it!” to thread “Bug Fix Discussion”.
* Send direct message “Hi Alex, welcome aboard!” to user Alex.

### 3. Members and roles

View members, assign, or remove roles.

Examples:

* Fetch the first 10 members of a server.
* Assign the Moderator role to user Dan.
* Remove the Moderator role from user Dan.
* Fetch all roles in a server.

### 4. Forums and channels

Create posts or rename channels.

Examples:

* Create a new Forum Post “Bug Reports” with message “Please describe the bug in detail” in #general.
* Rename channel #general to #main.
