GET MY OAUTH2 APPLICATION
The endpoint fetches details of the user's OAuth2 app, such as ID, name,
and bot info, also providing application features or client error messages.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_GET_MY_OAUTH2_APPLICATION])
GETMYOAUTH2APPLICATION
The endpoint fetches details of the user's OAuth2 app, such as ID, name,
and bot info, also providing application features or client error messages.<<DEPRECATED
use get_my_oauth2_application>>
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_GETMYOAUTH2APPLICATION])
LIST MY CONNECTIONS
This endpoint fetches a user's connections list, covering integrations and
friend sync settings. It shows details for types like Facebook, GitHub,
and Spotify, including activity, visibility,
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_LIST_MY_CONNECTIONS])
LISTMYCONNECTIONS
This endpoint fetches a user's connections list, covering integrations and
friend sync settings. It shows details for types like Facebook, GitHub,
and Spotify, including activity, visibility,
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_LISTMYCONNECTIONS])
LIST MY GUILDS
This endpoint fetches the current user's guilds with pagination options
('before', 'after', 'limit') and an option for member counts, returning
guilds' IDs, names, and features, including erro
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_LIST_MY_GUILDS])
LISTMYGUILDS
This endpoint fetches the current user's guilds with pagination options
('before', 'after', 'limit') and an option for member counts, returning
guilds' IDs, names, and features, including erro
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_LISTMYGUILDS])
GET MY APPLICATION
This endpoint retrieves the application details of the current user. It
returns an application object including id, name, icon, and more, for successful
requests, and an error object for clien
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_GET_MY_APPLICATION])
GETMYAPPLICATION
This endpoint retrieves the application details of the current user. It
returns an application object including id, name, icon, and more, for successful
requests, and an error object for clien
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_GETMYAPPLICATION])
UPDATE MY APPLICATION
The `/applications/@me` PATCH endpoint allows users to update their application
details like description, icon, and more, using JSON. Successful updates
return a 200 status, while failures pro
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_UPDATE_MY_APPLICATION])
GET BOT GATEWAY
This endpoint retrieves the bot's gateway URL and session start limits,
including shard count, max concurrency, and reset intervals. Errors return
as client-related issues with detailed descri
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_GET_BOT_GATEWAY])
GET PUBLIC KEYS
This endpoint retrieves public keys for OAuth2, responding with keys in
JSON including properties like 'kty', 'use', 'kid', 'n', 'e', 'alg'. Handles
client errors with detailed error messages.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_GET_PUBLIC_KEYS])
GETPUBLICKEYS
This endpoint retrieves public keys for OAuth2, responding with keys in
JSON including properties like 'kty', 'use', 'kid', 'n', 'e', 'alg'. Handles
client errors with detailed error messages.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_GETPUBLICKEYS])
GET MY OAUTH2 AUTHORIZATION
The `/oauth2/@me` endpoint fetches current OAuth2 auth info, including application,
user details, and granted scopes in JSON. It handles errors structuredly
and ensures security with BotToken
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_GET_MY_OAUTH2_AUTHORIZATION])
GETMYOAUTH2AUTHORIZATION
The `/oauth2/@me` endpoint fetches current OAuth2 auth info, including application,
user details, and granted scopes in JSON. It handles errors structuredly
and ensures security with BotToken
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_GETMYOAUTH2AUTHORIZATION])
LIST VOICE REGIONS
This GET endpoint at `/voice/regions` lists voice regions, including details
like `id`, `name`, and flags for `custom`, `deprecated`, and `optimal` statuses.
It supports 200 responses with an
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_LIST_VOICE_REGIONS])
GET MY USER
The "/users/@me" endpoint supports GET requests to fetch user details like
ID, username, and avatar, among others, accommodating various locales and
premium types. It offers detailed responses
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_GET_MY_USER])
GETMYUSER
The "/users/@me" endpoint supports GET requests to fetch user details like
ID, username, and avatar, among others, accommodating various locales and
premium types. It offers detailed responses
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_GETMYUSER])
UPDATE MY USER
Update the current user's profile, including username and avatar. Request
must include a username (2-32 chars) and an optional avatar in base64 encoding.
Returns updated user details on succes
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_UPDATE_MY_USER])
CREATE STAGE INSTANCE
Create a stage instance on Discord. Accepts a topic, channel ID, optional
privacy level, guild scheduled event ID, and notification flag. Returns
guild ID, topic, privacy level, and instance I
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_CREATE_STAGE_INSTANCE])
LIST STICKER PACKS
This endpoint retrieves a list of sticker packs, detailing each pack's ID,
SKU, name, description, and associated stickers, including sticker IDs,
names, tags, types, format, and sort values.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_LIST_STICKER_PACKS])
GET GATEWAY
The GET endpoint '/gateway' fetches the connection URL via a 200 response
JSON with 'url', and details client errors (4XX) with error codes and messages.
It supports optional BotToken authenti
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_GET_GATEWAY])
CREATEGUILD
Create a guild in Discord. Allows specifying guild details like name, icon,
verification level, role permissions, and channels. Requires a guild name;
other fields optional. Success response i
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_CREATEGUILD])
LIST MY PRIVATE ARCHIVED THREADS
This endpoint retrieves archived private threads in a channel, searchable
by date or quantity (2-100), returning thread details and metadata, with
error handling for client issues.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_LIST_MY_PRIVATE_ARCHIVED_THREADS])
LIST GUILD APPLICATION COMMAND PERMISSIONS
This endpoint fetches command permissions for an application in a guild,
detailing permissions by ID with support for role, user, and channel specifics,
and returns errors with Discord's codes
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_LIST_GUILD_APPLICATION_COMMAND_PERMISSIONS])
GET GUILD APPLICATION COMMAND PERMISSIONS
This endpoint fetches a command's permissions in a guild by application_id,
guild_id, and command_id, returning command permissions data and IDs, along
with a permissions array. Errors return
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_GET_GUILD_APPLICATION_COMMAND_PERMISSIONS])
SET GUILD APPLICATION COMMAND PERMISSIONS
Update guild application command permissions with a `PUT` request for up
to 100 items, specifying `id`, `type`, and `permission`. Successful updates
return command details and permissions; err
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_SET_GUILD_APPLICATION_COMMAND_PERMISSIONS])
ADD MY MESSAGE REACTION
This endpoint lets users add emoji reactions to messages in a channel. Success
returns a 204 code; failures return an errors object with details specific
to Discord API.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_ADD_MY_MESSAGE_REACTION])
DELETE MY MESSAGE REACTION
This API endpoint lets users remove a specified reaction from a message
in a channel. Successful deletions return a 204 code; client errors result
in 4XX codes with a detailed error object.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_DELETE_MY_MESSAGE_REACTION])
LIST PRIVATE ARCHIVED THREADS
This endpoint retrieves archived private threads in a channel, allowing
filters by 'before' date and 'limit' (2-100). It returns details like thread
ID, type, message count, and member info. E
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_LIST_PRIVATE_ARCHIVED_THREADS])
LIST PUBLIC ARCHIVED THREADS
This endpoint fetches archived public threads from a channel, allowing optional
filters by 'before' timestamp and result limits. Successful responses include
thread ID, type, and message count
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_LIST_PUBLIC_ARCHIVED_THREADS])
GET APPLICATION USER ROLE CONNECTION
The endpoint fetches user role connection details (platform, username, metadata)
using a GET request and OAuth2 ('role_connections.write' scope). It covers
successful and error responses relat
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_GET_APPLICATION_USER_ROLE_CONNECTION])
UPDATE APPLICATION USER ROLE CONNECTION
Update a user's app role by specifying platform name (50 chars max) and
username (100 chars max), with optional metadata. Includes success and error
response handling.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_UPDATE_APPLICATION_USER_ROLE_CONNECTION])
GET MY GUILD MEMBER
Fetches a user's guild membership details like avatar, status, join date,
roles, and more, requiring `guilds.members.read` permission. Returns errors
for client issues.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_GET_MY_GUILD_MEMBER])
GET GUILD APPLICATION COMMAND
This endpoint fetches a guild's specific application command, needing application,
guild, and command IDs. Returns command details if successful or a Discord
error object otherwise. Access req
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_GET_GUILD_APPLICATION_COMMAND])
DELETE GUILD APPLICATION COMMAND
This endpoint deletes a specific command for a guild application by ID.
On success, returns a 204 response. Client errors are detailed with Discord
API error objects including codes and messag
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_DELETE_GUILD_APPLICATION_COMMAND])
UPDATE GUILD APPLICATION COMMAND
This API endpoint allows updating guild application commands using application,
guild, and command IDs. It modifies details, options, permissions, and channels
with authentication, returning s
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_UPDATE_GUILD_APPLICATION_COMMAND])
LIST GUILD APPLICATION COMMANDS
This endpoint fetches Discord guild-specific commands, detailing IDs, names,
descriptions, and supports localization. It includes text/UI commands, permissions,
input types, secures access via
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_LIST_GUILD_APPLICATION_COMMANDS])
CREATE GUILD APPLICATION COMMAND
This endpoint facilitates new guild application commands creation, allowing
customization of options, permissions, and localization. It returns command
details and specifies errors for client
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_CREATE_GUILD_APPLICATION_COMMAND])
JOIN THREAD
This endpoint lets users join a channel thread with PUT, returning a 204
on success and errors with codes and messages for client issues. Authentication
requires a BotToken.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_JOIN_THREAD])
LEAVE THREAD
This endpoint allows a user to leave a thread in a channel by their ID.
Upon success, it returns a 204 code without content. For client errors,
it provides a detailed error object including a
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_LEAVE_THREAD])
BULK DELETE MESSAGES
This endpoint enables bulk deletion of 2-100 messages in a Discord channel
via message ID list. It returns a 204 on success and client error responses
for failures. Bot token authentication is
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_BULK_DELETE_MESSAGES])
DELETE USER MESSAGE REACTION
Endpoint allows deleting a user's reaction (specified by emoji_name and
user_id) to a message in a channel. It returns a 204 on success or a client
error with a detailed message and error code
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_DELETE_USER_MESSAGE_REACTION])
LIST MESSAGE REACTIONS BY EMOJI
Get reactions by emoji on a specific message in a channel, providing pagination
options `after` (snowflake) and `limit` (1-100). Responds with an array
of user objects who reacted with the spe
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_LIST_MESSAGE_REACTIONS_BY_EMOJI])
DELETE ALL MESSAGE REACTIONS BY EMOJI
This endpoint allows the deletion of all reactions for a specific emoji
on a message in a channel. Responses include a 204 on success or client
errors with detailed messages.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_DELETE_ALL_MESSAGE_REACTIONS_BY_EMOJI])
DELETE ALL MESSAGE REACTIONS
This endpoint deletes all reactions for a specified message, returning a
204 on success and providing error details in JSON format. Security is handled
through BotToken.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_DELETE_ALL_MESSAGE_REACTIONS])
CROSSPOST MESSAGE
The `/channels/{channel_id}/messages/{message_id}/crosspost` API endpoint
enables message crossposting in channels, returning a 200 status and message
details upon success or a 4XX error for c
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_CROSSPOST_MESSAGE])
CREATE THREAD FROM MESSAGE
Create threads from a message in a channel by specifying a name and optional
parameters like auto-archive duration and rate limit per user. Returns details
of the created thread, including its
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.DISCORD_CREATE_THREAD_FROM_MESSAGE])