mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
fix(Webhook): throw an error if no token is available when it's required (#5798)
This commit is contained in:
@@ -290,7 +290,7 @@ class Client extends BaseClient {
|
||||
return this.api
|
||||
.webhooks(id, token)
|
||||
.get()
|
||||
.then(data => new Webhook(this, data));
|
||||
.then(data => new Webhook(this, { token, ...data }));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user