guild-settings #35

Merged
sauceyred merged 42 commits from guild-settings into main 2025-07-13 02:26:37 +00:00
Showing only changes of commit 3c868931e8 - Show all commits

View file

@ -49,6 +49,10 @@ export const useApi = () => {
return await fetchWithApi(`/invites/${invite}`, { method: "POST" }) as GuildResponse;
}
async function createChannel(guildId: string, name: string, description?: string): Promise<void> {
return await fetchWithApi(`/guilds/${guildId}/channels`, { method: "POST", body: { name, description } });
}
return {
fetchGuilds,
fetchGuild,
@ -62,5 +66,6 @@ export const useApi = () => {
fetchMessage,
createGuild,
joinGuild,
createChannel
}
}