Methods#
(async) DiscordRequest(client, endpoint, options, headers, formData)#
Do Request to Discord
Parameters:
Name | Type | Default | Description |
---|---|---|---|
client | Object | The Client that makes the request | |
endpoint | string | The endpoint to request from | |
options | Object | The fetch options | |
headers | object | The headers to send | |
formData | boolean | false | if the body requires data or not |
- Source
checkURL(url, attachment)#
Check if the input is an url
Parameters:
Name | Type | Default | Description |
---|---|---|---|
url | string | The string to check | |
attachment | Boolean | false | boolean if it can be an attachment |
- Source
resolveColor(color)#
Resolve a color by the input
Parameters:
Name | Type | Description |
---|---|---|
color | string | | The input to resolve the color |
- Source