From 4a832ead2ceb5a08d306bfc2edd720133cf92473 Mon Sep 17 00:00:00 2001 From: iCrawl Date: Tue, 14 Jul 2020 11:37:01 +0200 Subject: [PATCH] chore: remove ability to edit client Id --- package.json | 5 ----- src/extension.ts | 5 +++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 0e6516d..6ca8247 100644 --- a/package.json +++ b/package.json @@ -78,11 +78,6 @@ "title": "Discord Presence Configuration", "type": "object", "properties": { - "discord.clientID": { - "type": "string", - "default": "383226320970055681", - "description": "Only modify this if you know what you are doing" - }, "discord.enabled": { "type": "boolean", "default": true, diff --git a/src/extension.ts b/src/extension.ts index 7b2d080..ea5644e 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -9,9 +9,10 @@ let loginTimeout: NodeJS.Timer | undefined; const statusBarIcon: StatusBarItem = window.createStatusBarItem(StatusBarAlignment.Left); statusBarIcon.text = '$(pulse) Connecting to Discord...'; +const clientId = '383226320970055681'; const config = workspace.getConfiguration('discord'); -register(config.get('clientID')!); -const rpc = new RPCClient(config.get('clientID')!, statusBarIcon); +register(clientId); +const rpc = new RPCClient(clientId, statusBarIcon); export async function activate(context: ExtensionContext) { Logger.log('Discord Presence activated!');