From efaf606c3c9345c047c405699ef1ce0d00fda4d8 Mon Sep 17 00:00:00 2001 From: SauceyRed Date: Sun, 13 Jul 2025 04:16:17 +0200 Subject: [PATCH] feat: create channel called general when creating a guild --- layouts/client.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/client.vue b/layouts/client.vue index b2124dd..e86b3a0 100644 --- a/layouts/client.vue +++ b/layouts/client.vue @@ -117,7 +117,8 @@ const options = [ const input = document.getElementById("guild-name-input") as HTMLInputElement; const name = input.value; try { - await api.createGuild(name); + const guild = (await api.createGuild(name)) as GuildResponse; + await api.createChannel(guild.uuid, "general"); } catch (error) { alert(`Couldn't create guild: ${error}`); }