feat: create channel called general when creating a guild
This commit is contained in:
parent
06df5cf75d
commit
efaf606c3c
1 changed files with 2 additions and 1 deletions
|
@ -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}`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue