feat: create channel called general when creating a guild

This commit is contained in:
SauceyRed 2025-07-13 04:16:17 +02:00
parent 06df5cf75d
commit efaf606c3c
Signed by: sauceyred
GPG key ID: 2BF92EB6D8A5CCA7

View file

@ -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}`);
}