Auto Join Guild on Create

This commit is contained in:
Raven Scott 2024-07-08 00:57:58 -04:00
parent f125cad87c
commit 7c874fab21

3
app.js
View File

@ -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) => {