Dragory
7468e5348d
Make warn/kick/ban actions in ModActions available to other plugins via public methods
2019-08-22 01:18:36 +03:00
Miikka Virtanen
d6170abeeb
Fix issues with long reasons in !ban/softban/kick. Display an error if a ban/softban/kick command fails.
2019-08-14 10:53:35 +03:00
Dragory
fba0abf172
ModActions: ignore server errors when getting bans
2019-08-05 01:39:11 +03:00
Dragory
67454a10eb
Some improvements to 'unknown member' error reporting
2019-08-04 16:51:42 +03:00
Dragory
6874a08904
Add bot alerts for missing audit log permissions; ignore internal server errors on discord's side when fetching audit logs
2019-07-22 13:50:24 +03:00
Dragory
24afc0a503
Typing fixes; show last reload time in !about
2019-07-22 00:09:45 +03:00
Dragory
039f0452fb
Add io-ts config schemas to all guild plugins
2019-07-21 21:15:52 +03:00
Dragory
9109e9a2c3
Split BaseRepository into non-guild and guild
...
BaseRepository includes all the non-guild-specific functionality,
such as with() and getRelations().
BaseGuildRepository includes guild-specific functionality, such as
getInstance().
2019-05-25 21:25:34 +03:00
Dragory
5dadceee97
Check if the user is already banned in !forceban
2019-05-13 00:34:12 +03:00
Dragory
5ed953eeb6
Fix missing pings/mentions in logs
2019-05-03 08:08:21 +03:00
Dragory
e9360f5fe5
Remove deprecated expand/hidden opts from !cases, use --expand/--hidden instead
2019-05-02 08:28:49 +03:00
Dragory
ef9afee8b4
Fix member fetching in a few places
2019-05-02 08:21:11 +03:00
Dragory
5039fdb82a
Fix case preview in !cases when two or more of the first case notes have the same timestamp
2019-04-20 20:15:31 +03:00
Dragory
b58b20fdc6
In !cases, use the username from the latest case if the user is not found
2019-04-20 19:32:20 +03:00
Dragory
3bbf31ea26
Support attachments in !update
2019-04-20 19:20:35 +03:00
Dragory
9a206455dc
Deprecate GuildActions. Fix double case posting when muting a user for message spam. Update to new mute/case style when muting a user for "other" spam.
...
GuildActions turned out to be a fairly pointless abstraction in the end.
It didn't really solve the problems it was meant to solve (that is,
reduce code spaghetti by having all inter-plugin calls go through a
single service, and allow easier ways to replace core plugins with
alternatives that share the same interface) any better than simply
using `this.getPlugin()` when needed, and introduced extra complexity
and made static analysis messier.
2019-04-20 17:36:28 +03:00
Dragory
b95da113b2
Fix error when fetching unknown user
2019-04-19 20:05:20 +03:00
Dragory
353ce30e6b
Fix user mentions not working for mod actions. Allow using plain username to target users with mod actions. Make error messages more consistent.
2019-04-19 12:25:25 +03:00
Dragory
4e5f87fb49
Work on better error messages for mod actions, allow muting users that are not on the server; WIP
2019-04-18 08:45:51 +03:00
Dragory
4e0bd46e0d
Add safety net for attempts to create a duplicate case for a single kick audit log entry
2019-04-14 17:05:07 +03:00
Dragory
268d88e4c5
Include user notification result in warn/kick/ban cases
2019-04-14 17:03:29 +03:00
Dragory
956c6dc116
Clear lint-staged test
2019-04-14 13:36:03 +03:00
Dragory
788a009ab7
lint-staged test 2
2019-04-14 13:35:25 +03:00
Dragory
9e35526fa8
lint-staged test
2019-04-14 13:34:23 +03:00
Dragory
d9fc59f892
Some fixes and cleanup
2019-04-14 13:30:48 +03:00
Dragory
25b986740f
Fix right click bans causing logs with the banned user's username missing
2019-04-14 13:26:29 +03:00
Dragory
2dd6fb22fe
Notify user for spam detection mutes. Add notification status ('user notified in DMs' etc.) to the case. Log case updates. Add 'unmuted immediately' to the case for unmutes without a time.
2019-04-13 17:35:02 +03:00
Dragory
849c8c5500
Deprecate !cases expand/hidden in favor of options --expand/--hidden (-e/-h)
2019-04-13 04:01:37 +03:00
Dragory
db20bd59e2
Clean up !update code
2019-04-13 03:31:50 +03:00
Dragory
788ab2a156
Deprecate !updatecase alias for !update
2019-04-13 03:28:38 +03:00
Dragory
302342227c
Fix some invalid permission checks
2019-04-13 03:27:29 +03:00
Dragory
289b425a25
Update to Knub 19.1.1 and update plugins accordingly
2019-04-13 01:44:18 +03:00
Dragory
639881048a
Fix quotation marks in !mute and !unmute arguments
2019-04-05 20:05:37 +03:00
Dragory
1251b86109
ModActions: allow 'e' as an alias for 'expand' in !cases
2019-03-20 00:35:46 +02:00
Dragory
69bcf9619e
Logs: add permission for whether a user is pinged in logs or not (mainly to not ping mods); templateFormatter: fix error when following a plain value variable with a function variable
2019-03-16 16:10:30 +02:00
Dragory
693aee8214
ModActions: log sent DMs
2019-03-16 15:44:20 +02:00
Dragory
f8ae8a3003
Add templateFormatter; migrate from formatTemplateString to templateFormatter
2019-03-16 15:42:55 +02:00
Dragory
bf0813886e
Include durations in mute and unmute case notes, clarify bot responses when updating an active mute
2019-03-07 22:35:33 +02:00
Dragory
1b8ba58330
ModActions: make the text that tells how the user was notified more descriptive
2019-03-07 22:09:14 +02:00
Dragory
1c77269643
Add types for all plugin configs and permissions. Update code to work with Knub 18.
2019-03-04 21:44:04 +02:00
Dragory
5903eab05c
ModActions: !cases without id now returns 5 most recent cases created by you, or the mod specified with --mod
2019-02-23 22:40:43 +02:00
Dragory
37fdae4027
ModActions: show if the user was messaged in bot response to actions
2019-02-23 22:05:54 +02:00
Dragory
bc5ceeb35f
ModActions: join reason attachments with spaces, not newlines
2019-02-23 21:54:22 +02:00
Dragory
ba6c78f3d2
Cleanup
2019-02-23 21:53:41 +02:00
Dragory
58dffd03c1
ModActions: fixes and tweaks to !addcase
2019-02-23 21:52:36 +02:00
Dragory
5fac32b9a9
ModActions: support attachments in reasons
2019-02-23 21:47:55 +02:00
Dragory
ceb8506ff8
ModActions: add !cases cmd without user, tweak old !cases response message
2019-02-23 21:33:57 +02:00
Dragory
f35d5b660f
ModActions: remove aliases showcase, usercases
2019-02-23 21:32:38 +02:00
Miikka
626188a125
Update ModActions.ts
2019-02-20 17:04:42 +02:00
Dragory
7b07cf7ac9
Allow using !update without a case number. Will update the mod's latest case instead.
2019-02-17 15:23:40 +02:00