chore: remove ability to edit client Id
This commit is contained in:
parent
ab9dc32614
commit
4a832ead2c
2 changed files with 3 additions and 7 deletions
|
@ -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,
|
||||
|
|
|
@ -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<string>('clientID')!);
|
||||
const rpc = new RPCClient(config.get<string>('clientID')!, statusBarIcon);
|
||||
register(clientId);
|
||||
const rpc = new RPCClient(clientId, statusBarIcon);
|
||||
|
||||
export async function activate(context: ExtensionContext) {
|
||||
Logger.log('Discord Presence activated!');
|
||||
|
|
Loading…
Reference in a new issue