diff options
| author | Zane Helton <zane99@me.com> | 2025-06-28 22:09:56 -0400 |
|---|---|---|
| committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2025-06-29 13:27:14 +1000 |
| commit | 33fde3bc4a338dccd8707a7712763535862aa037 (patch) | |
| tree | 0a0c9742ce8867295c4df814a64bf624ec2c082f /src/api/routes/users | |
| parent | Set `premium_tier` to 0 when creating guild from template (diff) | |
| download | server-ts-33fde3bc4a338dccd8707a7712763535862aa037.tar.xz | |
Fix the creation of guilds from templates
The biggest hold-up was missing fields (`premium_tier`, `welcome_screen`, etc.) but it looks like someone has provided a helpful function called `createGuild(...)` to provide sensible default values. This commit fixes the errors related to creating a guild from a template. I've also refactored the code to include roles and channels in the template. To make sure that the @everyone role is cloned correctly, when creating the guild from a template, we check if the role's ID matches the template's `source_guild_id`. If it does, we set the @everyone role to the new guild's ID.
Diffstat (limited to 'src/api/routes/users')
0 files changed, 0 insertions, 0 deletions
