$fetch
$fetch
will fetch information about a given method using Discord’s API.
Usage
Parameters
Field | Type | Description | Required |
---|---|---|---|
method | string | Method to fetch (listed below). | true |
query | string | Input for the used method. | true |
…properties | string | Sub 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
):