Skip to content

Commit

Permalink
feat: properly support supportedplatform and update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
xhayper committed Nov 19, 2023
1 parent aa0ba9b commit 3a0bdcd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xhayper/discord-rpc",
"version": "1.0.25",
"version": "1.1.0",
"description": "a fork of discordjs/RPC",
"main": "dist/index.js",
"author": "xhayper",
Expand All @@ -24,7 +24,7 @@
"prepack": "pnpm run build"
},
"dependencies": {
"axios": "^1.6.1",
"axios": "^1.6.2",
"ws": "^8.14.2"
},
"devDependencies": {
Expand Down
11 changes: 7 additions & 4 deletions src/structures/ClientUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ import { Channel } from "./Channel";
import { Guild } from "./Guild";
import { User } from "./User";

export enum ActivitySupportedPlatform {
IOS = "ios",
ANDROID = "android",
WEB = "web"
}

export enum ActivityPartyPrivacy {
PRIVATE = 0,
PUBLIC = 1
Expand Down Expand Up @@ -62,10 +68,7 @@ export type SetActivity = {
spectateSecret?: string;
instance?: boolean;
buttons?: Array<GatewayActivityButton>;
/**
* Max of 3 array elements, each string should be 1-32 characters long
*/
supportedPlatforms?: string[];
supportedPlatforms?: (ActivitySupportedPlatform | `${ActivitySupportedPlatform}`)[];
/**
* Default: ActivityTypes.PLAYING
*/
Expand Down

0 comments on commit 3a0bdcd

Please sign in to comment.