Comment on page
Documentation
Creates a discordspy client object to communicate discords.com API.
bot
- A discord.Client object.token
- Your bot's discords.com API token.post
- A discordspy post object.
Returns the number of servers the client is in.Returns
server_count
A method to post the number of server the client is in, cancels if the client is being ratelimited and a newer request is available.
A method to post the number of server the client is in, cancels if the client is being ratelimited and a newer request is available.Paramaters
port
- The port that the client should listen to webhooks on, can't be in use. The default port is 8080.auth
- The plain text string used to verify that the request is coming from discords.com.path
- The path the webhook should be sent to.
A non callable class to create post objects for posting stats
ReturnsReturns
<auto posting PostObject>
Returns a PostObject to post stats at certain intervals, by default this is set to 30 minutes.Parameters
seconds
- part of the duration of the interval in seconds.minutes
- part of the duration of the interval in minuteshours
- part od the duration of the interval in hoursReturns
<interval posting PostObject>
Last modified 2yr ago