From 3836309f99bfeb3267cdd3b0668fb199660001bf Mon Sep 17 00:00:00 2001 From: WavyCat Date: Fri, 30 May 2025 18:28:40 +0500 Subject: [PATCH] Fix the Location declaration (#3555) Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com> --- index.d.ts | 5 ++++- src/structures/Location.js | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 43b1a03..54e82aa 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1033,7 +1033,10 @@ declare namespace WAWebJS { export class Location { latitude: string; longitude: string; - options?: LocationSendOptions; + name?: string; + address?: string; + url?: string; + description?: string; constructor(latitude: number, longitude: number, options?: LocationSendOptions) } diff --git a/src/structures/Location.js b/src/structures/Location.js index 9e1ba5c..c85c497 100644 --- a/src/structures/Location.js +++ b/src/structures/Location.js @@ -6,6 +6,7 @@ * @property {string} [name] Location name * @property {string} [address] Location address * @property {string} [url] URL address to be shown within a location message + * @property {string} [description] Location full description */ /**