From 7cdf68a2b3c07b7a6c2ed7f22158a93cee30e5f0 Mon Sep 17 00:00:00 2001 From: Sankarsan Kampa <19631364+k3rn31p4nic@users.noreply.github.com> Date: Tue, 14 Apr 2020 00:37:53 +0530 Subject: [PATCH] types(discord-rpc): update types for {start,end}Timestamp (#43833) startTimestamp & endTimestamp supports both Date & number --- types/discord-rpc/index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/discord-rpc/index.d.ts b/types/discord-rpc/index.d.ts index 1ff20eb841..926ee8f94a 100644 --- a/types/discord-rpc/index.d.ts +++ b/types/discord-rpc/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: Jason Bothell // Jack Baron // Dylan Hackworth +// Sankarsan Kampa // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { EventEmitter } from 'events'; @@ -186,8 +187,8 @@ export interface VoiceSettings { export interface Presence { state?: string; details?: string; - startTimestamp?: number; - endTimestamp?: number; + startTimestamp?: number | Date; + endTimestamp?: number | Date; largeImageKey?: string; largeImageText?: string; smallImageKey?: string;