Skip to main content

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

NameTypeRequiredDetails
User IDDiscord IDYesDiscord ID of the user to fetch.

Outputs

NameTypeDetails
UserUserThe 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

NameTypeRequiredDetails
Server IDDiscord IDYesDiscord ID of the server to fetch.

Outputs

NameTypeDetails
ServerServerThe 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

NameTypeRequiredDetails
Channel IDDiscord IDYesDiscord ID of the channel containing the message.
Message IDDiscord IDYesDiscord ID of the message to fetch.

Outputs

NameTypeDetails
MessageMessageThe fetched message, or empty if not found. May be empty.

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

NameTypeRequiredDetails
Message linkTextYesThe Discord message link (https://discord.com/channels/<server>/<channel>/<message>).

Outputs

NameTypeDetails
MessageMessageThe 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

NameTypeRequiredDetails
LimitWhole numberYesMaximum number of servers to return (default 100). Default: 100.

Outputs

NameTypeDetails
ServersList of ServerServers the bot is in.
Need more help?
Can't find what you're looking for? Our team is happy to help.