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",
|
"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,
|
||||||
|
|
|
@ -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!');
|
||||||
|
|
Loading…
Reference in a new issue