Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redo documentation #63

Merged
merged 6 commits into from
Jul 1, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Improve documentation links
  • Loading branch information
jpbberry committed Jul 1, 2021
commit 1296a45a24dc91766e69c5ed1064b45583e08696
4 changes: 2 additions & 2 deletions src/structs/Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ interface APIOptions {
*
* const api = new Topgg.Api('Your top.gg token')
* ```
* @link https://topgg.js.org <- Library docs
* @link https://docs.top.gg <- API Reference
* @link {@link https://topgg.js.org | Library docs}
* @link {@link https://docs.top.gg | API Reference}
*/
export class Api extends EventEmitter {
private options: APIOptions;
Expand Down
6 changes: 4 additions & 2 deletions src/structs/Webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ export interface WebhookOptions {
* // URL = http://your.server.ip:80/dblwebhook
* // Authorization: webhookauth123
* ```
* @link {@link https://docs.top.gg/resources/webhooks/#schema | Webhook Data Schema}
* @link {@link https://docs.top.gg/resources/webhoooks | Webhook Documentation}
*/
export class Webhook {
public options: WebhookOptions;
Expand Down Expand Up @@ -132,8 +134,8 @@ export class Webhook {
}

/**
* (Use the new .listener() function) Middleware function to pass to express, sets req.vote to the payload
* @deprecated
* Middleware function to pass to express, sets req.vote to the payload
* @deprecated Use the new {@link Webhook.listener | .listener()} function
* @example
* ```js
* app.post('/dblwebhook', wh.middleware(), (req, res) => {
Expand Down