Skip to content

Commit

Permalink
fix: incorrectly handled client object in webhook constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
DjDeveloperr authored Sep 12, 2021
1 parent de88833 commit f82b10a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/structures/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ export class Webhook {
this.applicationID = data.application_id

if (rest !== undefined) this.rest = rest
else if (client !== undefined) this.rest = client.rest
else if (client !== undefined) {
this.client = client
this.rest = client.rest
}
else this.rest = new RESTManager()
}

Expand Down

0 comments on commit f82b10a

Please sign in to comment.