fix: types lol

This commit is contained in:
MARCROCK22 2024-11-17 18:25:24 -04:00
parent fd7c116215
commit 33ac5a8246

View File

@ -123,7 +123,7 @@ export class AttachmentBuilder {
* @returns The resolved REST API attachment. * @returns The resolved REST API attachment.
*/ */
export function resolveAttachment( export function resolveAttachment(
resolve: Attachment | AttachmentData | RESTAPIAttachment, resolve: Attachment | AttachmentBuilder | AttachmentData | RESTAPIAttachment,
): Omit<RESTAPIAttachment, 'id'> { ): Omit<RESTAPIAttachment, 'id'> {
if ('id' in resolve) return resolve; if ('id' in resolve) return resolve;