|
|
|
@ -187,11 +187,13 @@ export default class Vizality extends Updatable {
|
|
|
|
|
this.emit(Events.VIZALITY_SETTINGS_READY);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Check if the current user is a verified Vizality Developer.
|
|
|
|
|
* Check if the current user is a Vizality Developer.
|
|
|
|
|
*/
|
|
|
|
|
const currentUserId = (await import('@discord/user')).getCurrentUser()?.id;
|
|
|
|
|
if (Developers.includes(currentUserId)) {
|
|
|
|
|
this.settings.set('vizalityDeveloper', true);
|
|
|
|
|
if (Developers.some(developer => developer.id === currentUserId)) {
|
|
|
|
|
this.settings.set('developer', true);
|
|
|
|
|
} else {
|
|
|
|
|
this.settings.set('developer', false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -368,7 +370,7 @@ export default class Vizality extends Updatable {
|
|
|
|
|
/**
|
|
|
|
|
* Check if the user is a Vizality developer.
|
|
|
|
|
*/
|
|
|
|
|
if (this.settings.get('vizalityDeveloper', false)) {
|
|
|
|
|
if (this.settings.get('developer', false)) {
|
|
|
|
|
const path = join(Directories.STYLES, 'main.scss');
|
|
|
|
|
const compiler = resolveCompiler(path);
|
|
|
|
|
const style = createElement('style', { id, 'vz-style': '' });
|
|
|
|
|