Commit graph

117 commits

Author SHA1 Message Date
Dragory
63c41f0278 feat: new username support vol 2 2023-06-24 12:07:58 +00:00
Dragory
5f194bf1ef
chore: fix lint errors; tweak lint rules 2023-05-08 22:58:51 +03:00
Dragory
16fa19d3e9
chore: prettier 2023-05-08 21:33:40 +03:00
Dragory
dd1afc4dab
fix: don't attempt to message users off-server
Co-authored-by: metal0 <metal@i0.tf>
2023-04-01 21:45:12 +03:00
Dragory
017ef5674a
fix: isCommunicationDisabled() 2023-04-01 20:15:03 +03:00
Dragory
39e0dfa27f feat: timeout support 2023-04-01 20:05:11 +03:00
Tiago R
06877e90cc
Update djs & knub (#395)
* update pkgs

Signed-off-by: GitHub <noreply@github.com>

* new knub typings

Signed-off-by: GitHub <noreply@github.com>

* more pkg updates

Signed-off-by: GitHub <noreply@github.com>

* more fixes

Signed-off-by: GitHub <noreply@github.com>

* channel typings

Signed-off-by: GitHub <noreply@github.com>

* more message utils typings fixes

Signed-off-by: GitHub <noreply@github.com>

* migrate permissions

Signed-off-by: GitHub <noreply@github.com>

* fix: InternalPoster webhookables

Signed-off-by: GitHub <noreply@github.com>

* djs typings: Attachment & Util

Signed-off-by: GitHub <noreply@github.com>

* more typings

Signed-off-by: GitHub <noreply@github.com>

* fix: rename permissionNames

Signed-off-by: GitHub <noreply@github.com>

* more fixes

Signed-off-by: GitHub <noreply@github.com>

* half the number of errors

* knub commands => messageCommands

Signed-off-by: GitHub <noreply@github.com>

* configPreprocessor => configParser

Signed-off-by: GitHub <noreply@github.com>

* fix channel.messages

Signed-off-by: GitHub <noreply@github.com>

* revert automod any typing

Signed-off-by: GitHub <noreply@github.com>

* more configParser typings

Signed-off-by: GitHub <noreply@github.com>

* revert

Signed-off-by: GitHub <noreply@github.com>

* remove knub type params

Signed-off-by: GitHub <noreply@github.com>

* fix more MessageEmbed / MessageOptions

Signed-off-by: GitHub <noreply@github.com>

* dumb commit for @almeidx to see why this is stupid

Signed-off-by: GitHub <noreply@github.com>

* temp disable custom_events

Signed-off-by: GitHub <noreply@github.com>

* more minor typings fixes - 23 err left

Signed-off-by: GitHub <noreply@github.com>

* update djs dep

* +debug build method (revert this)

Signed-off-by: GitHub <noreply@github.com>

* Revert "+debug build method (revert this)"

This reverts commit a80af1e729b742d1aad1097df538d224fbd32ce7.

* Redo +debug build (Revert this)

Signed-off-by: GitHub <noreply@github.com>

* uniform before/after Load shorthands

Signed-off-by: GitHub <noreply@github.com>

* remove unused imports & add prettier plugin

Signed-off-by: GitHub <noreply@github.com>

* env fixes for web platform hosting

Signed-off-by: GitHub <noreply@github.com>

* feat: knub v32-next; related fixes

* fix: allow legacy keys in change_perms action

* fix: request Message Content intent

* fix: use Knub's config validation logic in API

* fix(dashboard): fix error when there are no message and/or slash commands in a plugin

* fix(automod): start_thread action thread options

* fix(CustomEvents): message command types

* chore: remove unneeded type annotation

* feat: add forum channel icon; use thread icon for news threads

* chore: make tslint happy

* chore: fix formatting

---------

Signed-off-by: GitHub <noreply@github.com>
Co-authored-by: almeidx <almeidx@pm.me>
Co-authored-by: Dragory <2606411+Dragory@users.noreply.github.com>
2023-04-01 14:58:17 +03:00
almeidx
662d9cda26
fix: no response if user only has hidden cases in !cases @user 2022-06-14 18:23:36 +01:00
almeidx
24cc532e86
fix: allow 0 deleteMessageDays and fix upper limit 2022-02-19 17:57:01 +00:00
Dragory
673ec7b09a
chore: resolve eslint issues 2021-11-03 16:59:08 +02:00
Dragory
f92ee9ba4f
fix: fix errors when unloading certain plugins after beforeLoad but before afterLoad 2021-10-31 16:48:32 +02:00
Dragory
8f17a835f9
refactor: debounce and batch simultaneous audit log requests 2021-10-27 00:09:29 +03:00
Dragory
d7c6e34695
fix: increase massban ban event ignore time 2021-10-26 22:42:22 +03:00
Dragory
76fc36108c
fix: use locks for tempbans to avoid race conditions 2021-10-25 22:54:23 +03:00
Dragory
d7810c4cd0
Add missing register/clear for expiring tempbans in !ban 2021-09-26 00:25:03 +03:00
Dragory
20edcb4c86
Fix missing awaits 2021-09-26 00:23:09 +03:00
Dragory
c7751a9da1
Centralize periodic checks for mutes, tempbans, vcalerts, reminders, and scheduled posts
This should result in a significant performance improvement.
The new method is also more precise than the old one, allowing
the aforementioned checks to be performed with second-precision.
2021-09-25 21:34:07 +03:00
Dragory
14753bb4ce
Disable case creating on manual kick
Discord has no "Kick" event. Instead, kicking a member just fires
a regular "Member Leave" event. Because of this, all manual kick
checks were being run every time a member leaves. Most importantly,
audit logs were being fetched on *every member leave*.

No.
2021-09-11 21:24:03 +03:00
Dragory
ac79eb09f5
Reformat all files with Prettier 2021-09-11 19:06:51 +03:00
Dragory
d109a58cb7
Type fixes + use template safe values for renderTemplate() everywhere 2021-08-18 20:32:45 +03:00
Dragory
59e75e0584
Type fixes + circular dependency fix 2021-08-18 20:01:06 +03:00
Dragory
e3b6b017a2
Fix issues with circular dependencies between plugins 2021-08-18 19:33:22 +03:00
Dragory
bed6589d48
Typed log functions + more 2021-08-18 01:51:42 +03:00
Dark
9a5e911cf2
Add typings, comment magic numbers 2021-08-15 22:14:04 +02:00
Nils
99c8dbabb7
Apply suggestions from code review
Co-authored-by: Almeida <almeidx@pm.me>
2021-08-15 22:02:18 +02:00
Dark
1c8a223264
Implement temporary permission check public functions 2021-08-15 01:44:25 +02:00
almeidx
3537305c59
upgrade discord.js 2021-08-04 20:45:42 +01:00
almeidx
afe0ec1194
removed unnecessary string literal and simplified stuff 2021-07-29 10:08:55 +01:00
almeidx
74a676913e
user.tag 2021-07-29 00:37:19 +01:00
almeidx
ca30dd204e
removed unnecessary encodeURIComponent on reasons 2021-07-28 23:50:25 +01:00
almeidx
f9e1343003
use User#displayAvatarURL and dont encode reason 2021-07-28 23:40:20 +01:00
almeidx
b4ba1daa76
simplify 2021-07-28 23:30:52 +01:00
Dark
c932269b7d
DJS Update, Full Import Cleanup 2021-07-25 14:32:08 +02:00
Dark
acb4913495
More fixes, change rest of stripObjectToScalars to configAccessibleObj 2021-07-21 22:14:09 +02:00
Dark
1ad70ffe1a
Change DiscordRESTError to DiscordAPIError 2021-06-30 23:06:02 +02:00
Dark
be71357ff9
Upgrade DJS, fix bugs 2021-06-30 18:43:42 +02:00
Dark
0822fc15e5
Type fixes for djs 2021-06-30 04:56:56 +02:00
Dark
5efdf5ce95
Formatting and initial ButtonRoles DB work 2021-06-08 02:23:30 +02:00
Dark
6ac9d2f2a2
Organise all imports, make Mutes depend on Logs 2021-06-06 23:51:32 +02:00
Dark
d0c6e6f411
More fixes, waitForInteraction (replacement for waitForReaction) 2021-06-02 23:41:05 +02:00
Dark
edcfd2333f
Bot now connects, lint fixes 2021-06-02 19:35:44 +02:00
Dark
d0a1beb809
Finish preliminary rework, ready to test 2021-06-02 04:07:50 +02:00
Dark
52839cc9f3
More rework progress, remove all eris imports 2021-06-01 02:05:55 +02:00
Dragory
72637fe1b3
More initialization order fixes (vol 2) 2021-05-23 17:13:11 +03:00
Dragory
f6be4f4af6
Update to Knub30.0.0-beta.37 and Eris 0.15, first pass 2021-05-23 14:35:16 +03:00
Dragory
64d6bb81fe
Round time values in !massban 2021-05-22 15:01:08 +03:00
Dragory
b4fb6de86e
Show max wait time for massban queue in !massban 2021-05-22 13:58:19 +03:00
Dragory
c30c9f6224
Add queue for massbans 2021-05-22 13:47:10 +03:00
Dragory
772d13fd94
Add total time taken to !massban result message 2021-05-22 13:32:27 +03:00
Dragory
b6915671ca
Add progress indicator to !massban. Tweak log/event ignoring to be more reliable for massbans. 2021-05-22 13:27:45 +03:00