fix: update dependencies to latest

This commit is contained in:
Divlo
2023-01-11 17:39:09 +01:00
parent b5089f7f0b
commit cd1a477324
31 changed files with 1243 additions and 17860 deletions

View File

@ -35,7 +35,11 @@ export const CreateGuild: React.FC = () => {
AxiosResponse<{ guild: GuildComplete }>
>('/guilds', { name: formData.name, description: formData.description })
const guildId = data.guild.id
const channelId = data.guild.channels[0].id
const channel = data.guild.channels[0]
if (channel == null) {
throw new Error('No channel found')
}
const channelId = channel.id
await router.push(`/application/${guildId}/${channelId}`)
return null
} catch (error) {