Lookups
Fetch users, servers, messages and the bot's server list by ID.
Fetch user by ID
Fetches a Discord user by their ID via the bot's user cache or REST API. Returns an empty value if no such user exists.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| User ID | Discord ID | Yes | Discord ID of the user to fetch. |
Outputs
| Name | Type | Details |
|---|---|---|
| User | User | The fetched user, or empty if not found. |
Fetch server by ID
Fetches a server the bot is in by its ID. Returns an empty value if the bot is not a member of that server.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Server ID | Discord ID | Yes | Discord ID of the server to fetch. |
Outputs
| Name | Type | Details |
|---|---|---|
| Server | Server | The fetched server, or empty if not found. May be empty. |
Fetch message by channel and ID
Fetches a single message by its channel ID and message ID. Returns an empty value if the message cannot be found or accessed.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Channel ID | Discord ID | Yes | Discord ID of the channel containing the message. |
| Message ID | Discord ID | Yes | Discord ID of the message to fetch. |
Outputs
| Name | Type | Details |
|---|---|---|
| Message | Message | The fetched message, or empty if not found. May be empty. |
Fetch message by link
Fetches a single message from its Discord message link, combining Read message link and Fetch message by channel and ID. Returns an empty value if the link does not match a message link, or if the message cannot be found or accessed.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Message link | Text | Yes | The Discord message link (https://discord.com/channels/<server>/<channel>/<message>). |
Outputs
| Name | Type | Details |
|---|---|---|
| Message | Message | The fetched message, or empty if the link is invalid or the message cannot be found. May be empty. |
Fetch bot servers
Returns up to limit servers the bot is currently in.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Limit | Whole number | Yes | Maximum number of servers to return (default 100). Default: 100. |
Outputs
| Name | Type | Details |
|---|---|---|
| Servers | List of Server | Servers the bot is in. |