486 Commits

Author SHA1 Message Date
Rory&
654e07bbf5 Add stopwatch/elapsedtime classes 2025-09-29 18:38:06 +02:00
CyberL1
c218a28213 fix: use createDateColumn() 2025-09-29 18:32:21 +02:00
CyberL1
9662b587e3 fix: update pinned column value in down migration 2025-09-29 18:32:21 +02:00
CyberL1
6902e1d19c fix: migrate older pinned messages to the new system 2025-09-29 18:32:21 +02:00
CyberL1
5c332ae763 refactor: add pinned getter to Message entity 2025-09-29 18:32:21 +02:00
CyberL1
dc3a85f078 refactor: use pinned_at to check if message is pinnned 2025-09-29 18:32:21 +02:00
CyberL1
b8b461f0db fix: getting message pinss 2025-09-29 18:32:21 +02:00
boogiewoogie
2242e8eef1 add CONFIG_READONLY functionality 2025-09-29 00:15:16 +02:00
Puyodead1
b8b9b038cf
fixes and minor changes for email stuff 2025-09-05 18:03:59 -04:00
Rory&
a245945bed Add automod migration 2025-07-27 20:14:56 +02:00
Rory&
9d314cd995 More cleanup 2025-07-27 15:49:37 +02:00
Rory&
d5fa5b845f Some cleanup 2025-07-27 15:49:37 +02:00
Emma [it/its]@Rory&
a26e84296e Kitty stuff works now 2025-07-27 15:49:37 +02:00
Emma [it/its]@Rory&
bd81cde977 WIP logo/terminal stuff 2025-07-27 15:49:37 +02:00
Emma [it/its]@Rory&
3f7d26118d Implement CRUD for automod 2025-07-27 15:49:37 +02:00
dank074
3c0efd17bc update guild bans api 2025-07-21 00:46:14 -05:00
Puyodead1
9347a3ec6f
Merge pull request #1305 from ZaneH/feat/handle-github-webhook
Implement GitHub-compatible webhook
2025-07-12 12:56:00 -04:00
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
82642d0e97 Capitalize ref_type when using in embed
The GitHub API provides `ref_type` as lowercase. For consistency, this
adds a utility function and makes use of it when formatting the `create`
event from GitHub.

tag => Tag
branch => Branch
2025-06-29 03:56:01 -04: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