Set `premium_tier` to 0 when creating guild from template
I think we'll need to discuss the proper way to provide default values
here. `premium_tier` for example should never be provided from the
template so it's fine going after the spread operator.

This commit still doesn't allow guilds to be created from template
because the next error is that `welcome_screen` doesn't exist. Our
options:

1. Provide default values in the ORM
2. Provide default values in the guild creation process
3. Throw an error if the template is missing values

Resolves: #1283 but creates a new issue
1 parent ff692c1 commit eec2a8ba8584e1b3121e9b2fda05dc98c77ddf25
@Zane Helton Zane Helton authored on 29 Jun 2025
Madeline committed on 29 Jun 2025
Showing 1 changed file
View
src/api/routes/guilds/templates/index.ts