Change types

This commit is contained in:
Maroxy 2021-10-24 19:47:30 +02:00
parent bbcddd099b
commit 21ad52904c

View file

@ -1,4 +1,4 @@
import discordRpc, { Client } from 'discord-rpc'; import discordRpc, { Client, Presence } from 'discord-rpc';
export class DiscordRPC export class DiscordRPC
{ {
@ -22,7 +22,7 @@ export class DiscordRPC
}); });
} }
public static setActivity (activity: any): void public static setActivity (activity: Presence): void
{ {
this.rpc.setActivity({ this.rpc.setActivity({
...activity, ...activity,