feat: Using new attachment API
This commit is contained in:
@@ -51,6 +51,15 @@ class MessagePayload {
|
||||
this.files = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether or not using new API to upload files
|
||||
* @type {boolean}
|
||||
* @readonly
|
||||
*/
|
||||
get usingNewAttachmentAPI() {
|
||||
return Boolean(this.options?.usingNewAttachmentAPI);
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether or not the target is a {@link Webhook} or a {@link WebhookClient}
|
||||
* @type {boolean}
|
||||
|
||||
Reference in New Issue
Block a user