summary refs log tree commit diff
path: root/src/api/routes/guilds (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix importRory&2025-10-041-2/+2
|
* Templates, maybe?Rory&2025-10-041-99/+46
|
* Add sticker limitRory&2025-10-041-0/+12
|
* Clean up array extensionsRory&2025-10-041-3/+2
|
* Pass mergeParams: true to new router calls due to express behavior changeRory&2025-09-3039-39/+39
|
* Clean up unused importsRory&2025-09-302-3/+0
|
* No error when message not foundRory&2025-09-291-1/+1
|
* Also filter expired invites when returning invite listRory&2025-09-291-1/+1
|
* Delete expired invitesRory&2025-09-291-0/+6
|
* Add fetching guild profilesRory&2025-09-291-0/+65
|
* Add first half of cloud attachment uploadsRory&2025-09-291-2/+2
|
* Colorful rolesRory&2025-09-291-1/+6
|
* Release -> ClientReleaseRory&2025-09-291-0/+8
|
* refactor: add `pinned` getter to `Message` entityCyberL12025-09-291-1/+1
|
* refactor: use `pinned_at` to check if message is pinnnedCyberL12025-09-291-1/+1
|
* Implement CRUD for automodEmma [it/its]@Rory&2025-07-271-0/+147
|
* add types to the ban api response objectsdank0742025-07-211-13/+24
|
* update guild bans apidank0742025-07-211-7/+74
|
* Fix the creation of guilds from templatesZane Helton2025-06-293-23/+15
| | | | | | | | | | | | | | | | 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.
* Fix PATCH Template route implementationZane Helton2025-06-291-6/+8
| | | | | | | | The previous PATCH implementation was creating a new template rather than editing the existing template. This resulted in all requests failing because it was missing more than one required field. Resolves: #1281
* add webrtc support (#1284)dank0742025-06-221-1/+1
| | | | Co-authored-by: MaddyUnderStars <46743919+MaddyUnderStars@users.noreply.github.com>
* send the real indexMathMan052025-05-281-1/+1
|
* code relies on things done in a certain orderMathMan052025-05-281-54/+50
| | | | This makes sure that the code gets done in the order that is expected
* remove missed logMathMan052025-05-281-1/+0
|
* sort array to make algorithm happyMathMan052025-05-281-1/+20
|
* fix another stupid bugMathMan052025-05-281-1/+1
|
* don't set possition if sentMathMan052025-05-281-1/+1
|
* remove logsMathMan052025-05-281-2/+0
|
* channel is nullable fixesMathMan052025-05-281-12/+21
|
* forgot to test on rebuildMathMan052025-05-281-0/+2
|
* fix moving channelsMathMan052025-05-281-1/+1
|
* implement hubs routesPuyodead12025-01-071-0/+105
|
* Update some patches, switch to node-fetch-commonjs, more updatesEmma [it/its]@Rory&2024-10-281-1/+1
|
* fix: self nick change responseCyber2024-09-031-2/+10
|
* Fix uploading of emojisTomatoCake2024-09-021-2/+2
|
* Fix updating vanity URL & retrieving widget.jsonTomatoCake2024-08-232-14/+12
|
* Run prettierTomatoCake2024-08-221-1/+1
|
* Merge branch 'master' of https://github.com/DEVTomatoCake/spacebar-server ↵TomatoCake2024-08-222-18/+29
|\ | | | | | | into fix/guild-create-response-schema
| * Merge branch 'master' into fix/widget.json-channel-ordering-deleted-channelsMadeline2024-08-222-14/+20
| |\
| | * Merge pull request #1186 from DEVTomatoCake/fix/consistent-widget-disabled-errorMadeline2024-08-182-8/+14
| | |\ | | | | | | | | Consistent widget disabled error
| | | * Consistent widget disabled errorTomatoCake2024-08-182-11/+17
| | | |
| | * | Fix widget.png guild icon loadingTomatoCake2024-08-181-8/+8
| | |/
| * | Prettier, remove manual deletion of msgsTomatoCake2024-08-181-1/+1
| | |
| * | widget.json channel_ordering, fix channel deletionTomatoCake2024-08-181-4/+9
| |/
* / Trying to fix guild response schemasTomatoCake2024-08-171-5/+5
|/
* Merge branch 'master' into feat/webhooks-3TomatoCake2024-08-081-1/+3
|\
| * Refactored max limit for bulk-bans from AbsoluteRateLimits to GuildLimits as ↵aintDatCap2024-07-241-2/+1
| | | | | | | | suggested by @devtomatocake
| * Implemented proposal described in the issue #1122aintDatCap2024-07-241-1/+4
| |
* | PrettierTomatoCake2024-07-181-4/+11
| |
* | Consistent relations, url property, src channelTomatoCake2024-07-181-6/+13
| |
* | Merge branch 'master' of https://github.com/DEVTomatoCake/spacebar-server ↵TomatoCake2024-07-186-87/+180
|\| | | | | | | into feat/webhooks-3
| * Support apng & webmTomatoCake2024-07-171-1/+5
| |
| * Support proper "animated" property for emojisTomatoCake2024-07-171-4/+4
| |
| * Add new message flags once againTomatoCake2024-07-051-3/+4
| |
| * Sort /channels for gateway consistencyTomatoCake2024-07-041-0/+1
| |
| * Add <Channel>.position to public endpointsTomatoCake2024-07-041-3/+16
| |
| * Ban API compat & Bulk Ban endpoint (#1120)TomatoCake2024-06-052-15/+148
| | | | | | | | Co-authored-by: Madeline <46743919+MaddyUnderStars@users.noreply.github.com>
| * Fix application icons (#1110)BoryaGames2024-02-111-1/+1
| | | | | | | | Co-authored-by: Madeline <46743919+MaddyUnderStars@users.noreply.github.com>
| * what the hell erkinsky2023-12-151-55/+0
| |
| * GuildMemberPatch: remove a useless queryPuyodead12023-12-141-6/+2
| |
* | Start implementing webhooksPuyodead12023-12-101-5/+30
|/
* fucking postgresMadeline2023-10-041-3/+6
|
* refactor channel positions in guildMadeline2023-10-043-44/+59
|
* prevent put /guilds/id/members/id for others until we have oauth2 scopes impledMadeline2023-08-271-1/+4
|
* goofMadeline2023-08-121-4/+4
|
* set rules/updates in guild if we created themMadeline2023-08-121-2/+6
|
* Implement community "create one for me"Madeline2023-08-101-0/+72
|
* Allow enabling welcome screen and check if welcome screen channels exist ↵Madeline2023-08-101-9/+24
| | | | within the guild (close #998)
* * call toJSON of keys in gateway when using erlpackMadeline2023-07-291-1/+1
| | | | | | * dont send bitrate/etc as null when should be undefined * set user flags to number instead of string * send empty 'threads' in identify when not using new state v2
* Send user and roles id array in GET /guilds/:id/members/:idMadeline2023-06-111-2/+23
|
* Return entire guild object in POST /guildsMadeline2023-05-301-1/+1
|
* fix: add return and run prettierCyberL12023-05-131-3/+8
|
* fix: don't create new vanity url when there's no ALIASABLE_NAMES flagCyberL12023-05-101-0/+6
|
* Rewrite getRouteDescriptions, fix message route not appearing in openapi specMadeline2023-04-162-2/+2
|
* fix typosMadeline2023-04-142-2/+2
|
* clusterfuckPuyodead12023-04-139-9/+9
|
* oapi: fix guild discovery requirementsPuyodead12023-04-131-1/+1
|
* guildsPuyodead12023-04-1328-609/+1364
|
* fixing lots of openapi crapPuyodead12023-04-1317-96/+101
|
* don't allow editing @everyone roleMadeline2023-04-111-1/+4
|
* Add erkins noteMadeline2023-04-111-0/+1
|
* Don't fetch the entire role relation when counting member idsMadeline2023-04-111-8/+10
|
* member-counts routeMadeline2023-04-111-0/+39
|
* Use partition func instead + use Promise.allMadeline2023-04-111-19/+14
|
* Remove Member.isInGuildOrFail, as it will always pass ( route permission check )Madeline2023-04-111-3/+7
|
* prettierMadeline2023-04-112-35/+43
|
* Add PATCH /guilds/#guild_id/roles/#role_id/member-ids APIochen12023-04-091-0/+38
|
* Fix indentationochen12023-04-091-1/+1
|
* Add PATCH /guilds/#guild_id/roles/#role_id/members APIochen12023-04-091-0/+53
| | | Discord uses this in the Edit Role menu, Manage members tab to update the list of members with the role.
* Remove ALL fosscord mentionsMadeline2023-03-3132-63/+63
|
* Revert "Merge pull request #1008 from spacebarchat/dev/samuel"Madeline2023-03-311-1/+0
| | | | | This reverts commit 69ea71aa9e0bd2e5a98904a66fba0ad3745707cb, reversing changes made to 8b2faf0b18336e5dff1eeff4e849bcfd96b09e88.
* Merge pull request #1008 from spacebarchat/dev/samuelSamuel (Flam3rboy)2023-03-301-0/+1
|\
| * fix: missing id in select querySamuel2023-03-181-0/+1
| |
* | SPACEBARMadeline2023-03-3132-32/+32
| |
* | SPACEBARMadeline2023-03-3132-32/+32
|/
* Fix being unable to unset nicknamesMadeline2023-02-051-1/+11
| | | | | Remove unwanted guild profile handler in cdn Fix rights check for bio/avatars of your own user
* Merge pull request from GHSA-9q7f-pv47-cxp9Madeline2023-02-021-1/+13
|
* Add ESLint (#941)Madeline2023-01-2022-88/+77
| | | | | | | * Add eslint, switch to lint-staged for precommit * Fix all ESLint errors * Update GH workflow to check prettier and eslint
* Fix a funny security vulnChrisChrome2023-01-181-1/+1
|
* Script to add license preamble to each file. Also, does that. (#935)Madeline2023-01-1832-0/+576
| | | | | | | | | * 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
* PrettierMadeline2023-01-056-56/+110
|
* Fix new roles having duplicate positionsMadeline2022-12-302-6/+13
|
* Fix the roles bugMadeline2022-12-211-5/+8
|
* implement guild profiles and fix user profilesPuyodead12022-12-192-40/+56
|
* Only allow specific server features to be editedMadeline2022-12-051-0/+22
|
* Fix private messages being returned when no channel_id provided in searchMadeline2022-12-051-3/+17
|
* Fix bug allowing any member from kicking any member instance-wideMadeline2022-12-051-3/+3
|
* Fix pruneMadeline2022-12-031-1/+1
|
* Forgot some schemas + only generate schemas in util/schemas + add setup scriptMadeline2022-10-242-12/+2
|
* remove self_edit_guilds, was dumbMadeline2022-10-071-2/+2
|
* fix self_edit_guilds rightMadeline2022-10-071-2/+2
|
* Split MANAGE_GUILDS right into MANAGE_GUILDS for instance-wide control and ↵Madeline2022-09-301-1/+1
| | | | SELF_EDIT_GUILDS for control over guilds you own or have perms to edit
* whoopsMadeline2022-09-281-1/+1
|
* Discovery splashes + fix guild icons disappearing on settings changeMadeline2022-09-281-7/+16
|
* Missed some schemasMadeline2022-09-281-17/+1
|
* PrettierMadeline2022-09-2628-699/+1280
|
* Move schemas to /src/util/schemasMadeline2022-09-2620-171/+15
|
* Rearrange assets a bit, fix anything that uses assets folderMadeline2022-09-261-1/+1
|
* Refactor to mono-repo + upgrade packagesMadeline2022-09-2531-0/+1890