Skip to content

Commit

Permalink
fix: adds mock values
Browse files Browse the repository at this point in the history
  • Loading branch information
goatslacker committed Dec 16, 2024
1 parent 8ce3106 commit b4deae2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand All @@ -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<IDiscordSDK['commands']>) {
Expand Down

0 comments on commit b4deae2

Please sign in to comment.