fix: allow null to be passed in order to reset icon/avatar (#6646)

This commit is contained in:
Shubham Parihar
2021-09-23 17:10:51 +05:30
committed by GitHub
parent 92f6471e8e
commit 603350645d
6 changed files with 45 additions and 39 deletions

View File

@@ -209,7 +209,7 @@ class Webhook {
* Options used to edit a {@link Webhook}.
* @typedef {Object} WebhookEditData
* @property {string} [name=this.name] The new name for the webhook
* @property {BufferResolvable} [avatar] The new avatar for the webhook
* @property {?(BufferResolvable)} [avatar] The new avatar for the webhook
* @property {GuildTextChannelResolvable} [channel] The new channel for the webhook
*/