summary refs log tree commit diff
path: root/src/api/routes/guilds/templates (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix importRory&2025-10-041-2/+2
|
* Templates, maybe?Rory&2025-10-041-99/+46
|
* Pass mergeParams: true to new router calls due to express behavior changeRory&2025-09-301-1/+1
|
* Clean up unused importsRory&2025-09-301-2/+0
|
* Fix the creation of guilds from templatesZane Helton2025-06-291-22/+11
| | | | | | | | | | | | | | | | 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.
* Set `premium_tier` to 0 when creating guild from templateZane Helton2025-06-291-0/+1
| | | | | | | | | | | | | | | | 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
* Await guild creation to fix a race conditionZane Helton2025-06-291-19/+18
| | | | | | | `Promise.all(...)` runs these simultaneously, yet role depends on the guild to be created first. This can lead to a race condition. I've awaited role creation too because the call to `Member.addToGuild(...)` relies on the role to be created.
* Update some patches, switch to node-fetch-commonjs, more updatesEmma [it/its]@Rory&2024-10-281-1/+1
|
* fix typosMadeline2023-04-141-1/+1
|
* guildsPuyodead12023-04-131-41/+60
|
* fixing lots of openapi crapPuyodead12023-04-131-8/+8
|
* Remove ALL fosscord mentionsMadeline2023-03-311-3/+3
|
* SPACEBARMadeline2023-03-311-1/+1
|
* SPACEBARMadeline2023-03-311-1/+1
|
* Add ESLint (#941)Madeline2023-01-201-3/+3
| | | | | | | * Add eslint, switch to lint-staged for precommit * Fix all ESLint errors * Update GH workflow to check prettier and eslint
* Script to add license preamble to each file. Also, does that. (#935)Madeline2023-01-181-0/+18
| | | | | | | | | * Add script to automatically add license to each file * Add license preamble to each file. * Fix existing preamble detection breaking due to line endings. Git :( * Prevent license from being added to code with other licenses
* PrettierMadeline2022-09-261-44/+97
|
* Move schemas to /src/util/schemasMadeline2022-09-261-6/+1
|
* Refactor to mono-repo + upgrade packagesMadeline2022-09-251-0/+84