Skip to content

$fetch

$fetch will fetch information about a given method using Discord’s API.

Usage

$fetch[method;query;...properties]

Parameters

FieldTypeDescriptionRequired
methodstringMethod to fetch (listed below).true
querystringInput for the used method.true
…propertiesstringSub properties of query to return.false

Methods

Methods
message
channel
user
invite
webhook
application
command
guildPreview
guildTemplate
premiumStickerPacks
sticker
guildCommand
default

Example(s)

This will display information about the initial command message using the fetch function (returns message.id):

1
client.command({
2
name: "fetch",
3
code: `
4
\`\`\`
5
$fetch[message;$messageID;id]
6
\`\`\`
7
`
8
});