Optional
cache?: { The cache options for the client.
Optional
cacheWhether to cache calendars.
true
Optional
cacheWhether to cache calendar RSVPs.
true
Optional
cacheWhether to cache channels.
true
Optional
cacheWhether to cache forum topics.
true
Optional
cacheWhether to cache member bans.
true
Optional
cacheWhether to cache message reactions.
true
Optional
cacheWhether to cache messages.
true
Optional
cacheWhether to cache servers.
true
Optional
cacheWhether to cache member social links.
true
Optional
cacheWhether to cache webhooks.
true
Optional
fetchWhether to fetch the author of a message when it is created and cache it.
false
Optional
removeWhether to remove a calendar RSVP from the cache when it is deleted.
true
Optional
removeWhether to remove a calendar from the cache when it is deleted.
true
Optional
removeWhether to remove a channel from the cache when it is deleted.
true
Optional
removeWhether to remove a member's ban from the cache when they are unbanned.
true
Optional
removeWhether to remove a member from the cache when they leave a server.
true
The function to create a new instance of CacheStructure.
You can use this to provide your own implementation of CacheStructure, which will be used to cache data in the client in a future update.
Optional
gateway?: { Gateway handling options
A boolean returning function that dictates whether an event is discarded
Optional
rest?: { The RestManager options.
Optional
headers?: Record<string, string>The headers that will be supplied in each request that the client, or more precisely, RestManager, will send.
It's generally only recommended to supply headers that may be required for Guilded experiments, as vital headers will be supplied by Guilded.js.
Optional
proxyURL?: stringThe base url of the API you want to send requests to. By default, this will send it to guilded's rest API. This is meant for big bot developers who want to use a proxy rest system.
If you want to use a custom API url, you can set this property to your custom url.
Optional
version?: 1The version of the API to be used for making requests. By default, this will use the latest version that the library supports.
1
You can set the API version to 1 if you want to use the stable API.
The bot's token.
The token is required to authenticate with the Guilded API.
Optional
ws?: { Options that will be given directly to WebSocket.
Optional
headers?: Record<string, string>The headers that will be supplied when WebSocket is being initialized and its request is made.
It's generally only recommended to supply headers that may be required for Guilded experiments, as vital headers will be supplied by Guilded.js.
Generated using TypeDoc
Options for constructing the client.