diff --git a/.changeset/fresh-apricots-train.md b/.changeset/fresh-apricots-train.md new file mode 100644 index 00000000..9acb2889 --- /dev/null +++ b/.changeset/fresh-apricots-train.md @@ -0,0 +1,5 @@ +--- +"guilded.js": patch +--- + +fix: status default diff --git a/packages/guilded.js/lib/structures/Client.ts b/packages/guilded.js/lib/structures/Client.ts index 4507a18f..e59963a1 100644 --- a/packages/guilded.js/lib/structures/Client.ts +++ b/packages/guilded.js/lib/structures/Client.ts @@ -231,7 +231,7 @@ export class Client extends (EventEmitter as unknown as new () => TypedEmitter { - let resolvedDate: Date; + let resolvedDate: Date | undefined; if (options.expiresAt instanceof Date) { resolvedDate = options.expiresAt; } else if (typeof options.expiresAt === "string") { @@ -239,7 +239,7 @@ export class Client extends (EventEmitter as unknown as new () => TypedEmitter TypedEmitter