From 7c874fab217474fd3a3da57736f519f38030c1d9 Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Mon, 8 Jul 2024 00:57:58 -0400 Subject: [PATCH] Auto Join Guild on Create --- app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 0ab72e5..e5bf257 100644 --- a/app.js +++ b/app.js @@ -172,9 +172,10 @@ async function initialize() { hljs.highlightAll(); }); - document.addEventListener('createGuild', (event) => { + document.addEventListener('createGuild', async (event) => { const { guildName } = event.detail; createGuild(guildName); + await joinAllGuilds(); // Ensure the app joins all guilds on startup }); document.addEventListener('addRoomToGuild', (event) => {