RadarcordClient
export default class RadarcordClient;Represents the main client to access the Radarcord client.
Constructor
constructor(dJSClient: DiscordJS.Client, authToken: string);Properties
dJSClient
dJSClientRepresents your DiscordJS.Client.
Type: DiscordJS.Client
authorization
authorizationRepresents your Radarcord Authorization token.
Type: string
Methods
postStats
postStatspublic async postStats(shardCount: number = 1): Promise<StatsPostResult>Posts stats to the Radarcord API once, then returns a StatsPostResult.
Arguments:
Name
Type
Required?
Default
shardCount
Number
1
autopostStats
autopostStatsAutomatically posts stats to the Radarcord API, but does not return anything.
Arguments:
Name
Type
Required?
Default
shardCount
Number
1
postWithCallback
postWithCallbackPosts stats, then runs a callback. Useful for logging your post result.
Arguments:
Name
Type
Required?
Default
shardCount
Number
1
autopostWithCallback
autopostWithCallbackAutoposts and runs a callback every time a post is completed.
Arguments:
Name
Type
Required?
Default
Last updated