From 618247414b6ae18e9c2fea5b58e2cb49bdeba354 Mon Sep 17 00:00:00 2001 From: Josh Perez Date: Mon, 16 Dec 2024 17:46:54 -0500 Subject: [PATCH] fix: add new params to IDiscordSDK (#293) --- src/interface.ts | 2 ++ src/mock.ts | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/interface.ts b/src/interface.ts index 8ea4ea7..8e15093 100644 --- a/src/interface.ts +++ b/src/interface.ts @@ -21,6 +21,8 @@ export type MaybeZodObjectArray = export interface IDiscordSDK { readonly clientId: string; readonly instanceId: string; + readonly customId: string | null; + readonly referrerId: string | null; readonly platform: Platform; readonly mobileAppVersion: string | null; readonly sdkVersion: string; diff --git a/src/mock.ts b/src/mock.ts index 03f6329..8a589f3 100644 --- a/src/mock.ts +++ b/src/mock.ts @@ -13,6 +13,8 @@ export class DiscordSDKMock implements IDiscordSDK { readonly clientId: string; readonly platform = Platform.DESKTOP; readonly instanceId = '123456789012345678'; + readonly customId: string | null; + readonly referrerId: string | null; readonly configuration = getDefaultSdkConfiguration(); readonly source: Window | WindowProxy | null = null; readonly sourceOrigin: string = ''; @@ -33,6 +35,8 @@ export class DiscordSDKMock implements IDiscordSDK { this.guildId = guildId; this.channelId = channelId; this.locationId = locationId; + this.customId = null; + this.referrerId = null; } _updateCommandMocks(newCommands: Partial) {