fix makeAttachmentPointer to make 3 parameter optional

pull/690/head
Ryan Tharp 5 years ago
parent 9af91d228c
commit 6c9f14fc31

@ -193,11 +193,8 @@ MessageSender.prototype = {
constructor: MessageSender, constructor: MessageSender,
// makeAttachmentPointer :: Attachment -> Promise AttachmentPointerProto // makeAttachmentPointer :: Attachment -> Promise AttachmentPointerProto
async makeAttachmentPointer( async makeAttachmentPointer(attachment, publicServer = null, options = {}) {
attachment, const { isRaw = false, isAvatar = false } = options;
publicServer = null,
{ isRaw = false, isAvatar = false }
) {
if (typeof attachment !== 'object' || attachment == null) { if (typeof attachment !== 'object' || attachment == null) {
return Promise.resolve(undefined); return Promise.resolve(undefined);
} }

Loading…
Cancel
Save