This repository has been archived on 2026-02-28. You can view files and clone it, but cannot push or open issues or pull requests.
Zane Helton 33fde3bc4a 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.
2025-06-29 13:27:14 +10:00
..
2025-05-03 12:30:22 +02:00
2024-07-17 19:55:29 +10:00
2024-06-28 12:43:53 +02:00
2025-06-22 12:41:13 +10:00
2025-06-22 12:41:13 +10:00
2025-06-29 13:24:26 +10:00
2025-06-22 12:41:13 +10:00
2025-05-03 12:30:22 +02:00