types(discord-rpc): update types for {start,end}Timestamp (#43833)

startTimestamp & endTimestamp supports both Date & number
This commit is contained in:
Sankarsan Kampa 2020-04-14 00:37:53 +05:30 committed by GitHub
parent f8797c8d40
commit 7cdf68a2b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@
// Definitions by: Jason Bothell <https://github.com/jasonhaxstuff>
// Jack Baron <https://github.com/lolPants>
// Dylan Hackworth <https://github.com/dylhack>
// Sankarsan Kampa <https://github.com/k3rn31p4nic>
// 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;