chore: remove ability to edit client Id

This commit is contained in:
iCrawl 2020-07-14 11:37:01 +02:00
parent ab9dc32614
commit 4a832ead2c
No known key found for this signature in database
GPG key ID: 1AB888B16355FBB2
2 changed files with 3 additions and 7 deletions

View file

@ -78,11 +78,6 @@
"title": "Discord Presence Configuration", "title": "Discord Presence Configuration",
"type": "object", "type": "object",
"properties": { "properties": {
"discord.clientID": {
"type": "string",
"default": "383226320970055681",
"description": "Only modify this if you know what you are doing"
},
"discord.enabled": { "discord.enabled": {
"type": "boolean", "type": "boolean",
"default": true, "default": true,

View file

@ -9,9 +9,10 @@ let loginTimeout: NodeJS.Timer | undefined;
const statusBarIcon: StatusBarItem = window.createStatusBarItem(StatusBarAlignment.Left); const statusBarIcon: StatusBarItem = window.createStatusBarItem(StatusBarAlignment.Left);
statusBarIcon.text = '$(pulse) Connecting to Discord...'; statusBarIcon.text = '$(pulse) Connecting to Discord...';
const clientId = '383226320970055681';
const config = workspace.getConfiguration('discord'); const config = workspace.getConfiguration('discord');
register(config.get<string>('clientID')!); register(clientId);
const rpc = new RPCClient(config.get<string>('clientID')!, statusBarIcon); const rpc = new RPCClient(clientId, statusBarIcon);
export async function activate(context: ExtensionContext) { export async function activate(context: ExtensionContext) {
Logger.log('Discord Presence activated!'); Logger.log('Discord Presence activated!');