468 Commits

Author SHA1 Message Date
Rory&
cb0443821e Add emoji source endpoint 2025-07-07 21:59:25 +02:00
Rory&
5205ccecd5 Add endpoint to get account standing 2025-07-07 20:40:38 +02:00
Rory&
5ff2267cd1 Add staff_only flag in guild create schema 2025-07-07 19:54:33 +02:00
Rory&
f2427e66f0 Add intent to event map as per discord docs 2025-07-06 20:53:30 +02:00
Rory&
a68153ab86 Add map of privileged intents 2025-07-06 20:18:22 +02:00
Rory&
a3e597cafe Move erkinalp intents out 2025-07-06 20:17:02 +02:00
Rory&
997bdbc634 Use discord names for intents 2025-07-06 20:16:29 +02:00
Rory&
441dd3ddcd Add bitfield for discords privileged intents 2025-07-06 19:47:28 +02:00
Rory&
1ee84431e4 Silence duplicate url/path errors when signature objects are passed in 2025-07-06 18:03:17 +02:00
Rory&
dae26ded20 Make CDN signature logging opt-in, log stack when both path and url are provided 2025-07-06 18:03:17 +02:00
Rory&
b590482bfb Prettier 2025-07-06 18:03:17 +02:00
Rory&
199a518092 Resolve eslint errors 2025-07-06 18:03:17 +02:00
Rory&
2e196573ea Make IP/user-agent validation in CDN work 2025-07-06 18:03:17 +02:00
Emma [it/its]@Rory&
8bf45dcdc1 use prototype when signing message 2025-07-06 18:03:17 +02:00
Emma [it/its]@Rory&
4395648c5b dont duplicate urls 2025-07-06 18:03:17 +02:00
Emma [it/its]@Rory&
c2497808dc include rest of attachment when signing 2025-07-06 18:03:17 +02:00
Emma [it/its]@Rory&
387cef269a Sign media per user 2025-07-06 18:03:17 +02:00
Emma [it/its]@Rory&
8922ca1518 Add ip? 2025-07-06 18:03:17 +02:00
Emma [it/its]@Rory&
d6a5504e55 More logging 2025-07-06 18:03:17 +02:00
Emma [it/its]@Rory&
f18c85a6b6 log signed ip addr 2025-07-06 18:03:17 +02:00
Emma [it/its]@Rory&
0be56adcf4 Log signing errors 2025-07-06 18:03:17 +02:00
Emma [it/its]@Rory&
0e0da6d722 Add options to erquire IP or User Agent to access CDN 2025-07-06 18:03:17 +02:00
Emma [it/its]@Rory&
fca7953a51 Update some dependencies, fix nix 2025-07-02 15:54:23 +02:00
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
Zane Helton
0166bbf12a Make ban reason nullable
Resolves: #1276
2025-06-29 13:24:26 +10:00
Zane Helton
f9cfb46e73 Fix various issues with embeds on message updates
The `postHandleMessage` function is parsing links and adding them to the
EmbedCache table if necessary. In the previous implementation, message
updates would push to the embeds unconditionally.

This commit parses links from the message and:

1. Normalizes the URLs
  - Useful for deduplicating similar URLs
2. Remove embeds with matching normalized URLs
  - Leaves all embeds except for ones with a `.url` property matching
  the updated message
  - This allows embeds to be re-ordered if the URL is moved
3. If no normalized URLs are found, remove all embeds
4. Take the deduplicated + normalized URLs and add an embed to the message and
insert into the EmbedCache table (if necessary)

This enables:

1. Embeds to be re-ordered by re-ordering links
2. Embeds to be removed by removing links

and fixes:

1. Duplicate embeds being attached to a message when edited
2025-06-28 18:30:52 +10:00
dank074
526a8da8f5
add webrtc support (#1284)
Co-authored-by: MaddyUnderStars <46743919+MaddyUnderStars@users.noreply.github.com>
2025-06-22 12:41:13 +10:00
MathMan05
5488874476 delete the null eater 2025-05-28 08:46:35 +02:00
MathMan05
af70a7f21b channel is nullable fixes 2025-05-28 08:46:35 +02:00
Puyodead1
080b2c7d38 Implement signed cdn urls 2025-05-03 12:30:22 +02:00
dank074
0ed7a8af77 add ophandler for GuildSubscriptionsBulk message 2025-04-12 05:01:37 -05:00
root
541af2045d Added better user configuration and removed extra logging 2025-03-25 11:15:14 -07:00
root
859edb9a27 Added Name Validation utility function 2025-03-24 07:26:26 -07:00
root
b03888fd62 Merge branch 'master' of https://github.com/spacebarchat/server into update_webhooks 2025-03-23 16:33:24 -07:00
root
336b2df1d7 Fixed errors in authorization for webhooks with tokens 2025-03-23 16:28:25 -07:00
Puyodead1
0fffa7f313
Merge pull request #1217 from SupremeMortal/fix/message-ack
Add missing fields to `MessageAcknowledgeSchema`
2025-03-23 14:21:43 -04:00
root
c2c34039d3 added updates to sync with djs webhook packet 2025-03-20 09:09:34 -07:00
root
39af71131a modified webhooks to match djs webhook send format 2025-03-20 08:33:16 -07:00
Puyodead1
8c7fabfe40
implement hubs routes 2025-01-07 21:12:43 -05:00
dank074
f5d6394c38 run prettier 2024-11-19 14:19:40 -06:00
Madeline
841b36112f
Merge pull request #1232 from dank074/patch/eslintConfig 2024-11-14 16:02:00 +11:00
dank074
bcbd8234e5 fix op 8 2024-11-13 19:59:57 -06:00
dank074
f499507698 turn off eslint rules causing issues 2024-11-13 19:05:54 -06:00
Emma [it/its]@Rory&
40b356ecdf Add express trustedProxy support 2024-10-30 16:28:57 +01:00
Emma [it/its]@Rory&
e0d0022675 Update sentry to latest 2024-10-30 00:32:59 +01:00
Emma [it/its]@Rory&
168758924c Update some patches, switch to node-fetch-commonjs, more updates 2024-10-28 00:32:15 +01:00
SupremeMortal
12eab21c83
Add missing fields to MessageAcknowledgeSchema
I'm not entirely sure what these fields do, but I've added them to make the client happy.
2024-09-15 17:42:23 +01:00
SupremeMortal
79eb8b6785
Add guild_template_code to GuildCreateSchema
Fixes guild creation due to additional property error.
2024-09-14 22:01:46 +01:00
TomatoCake
73ceee4ab0 Fix new app property migration disallowing NULL 2024-08-31 12:17:02 +02:00
TomatoCake
e807037145 Add more application properties 2024-08-31 11:04:18 +02:00