From a3a22b2b17c7875d29576cff0cfb4e9ff51568b1 Mon Sep 17 00:00:00 2001 From: Christopher Renaud Oelerich Date: Mon, 5 Feb 2024 01:01:29 -0600 Subject: [PATCH] await guild name retrieval --- src/settings-form-application.mjs | 2 +- src/settings.mjs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/settings-form-application.mjs b/src/settings-form-application.mjs index bdf8acb..a57d4e9 100644 --- a/src/settings-form-application.mjs +++ b/src/settings-form-application.mjs @@ -105,7 +105,7 @@ export class OronderSettingsFormApplication extends FormApplication { .catch(Logger.error) if (!this.object.guild_name) { - this._set_guild_name(requestOptions) + await this._set_guild_name(requestOptions) } let updated = false diff --git a/src/settings.mjs b/src/settings.mjs index f31bd65..3fad68d 100644 --- a/src/settings.mjs +++ b/src/settings.mjs @@ -7,14 +7,14 @@ export const registerSettings = async () => { scope: "world", type: String, config: false, - default:'' + default: '' }) game.settings.register(MODULE_ID, AUTH, { scope: "world", type: String, config: false, - default:'' + default: '' }) game.settings.register(MODULE_ID, ID_MAP, {