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!');