17 Commits

Author SHA1 Message Date
Ushie
2379130c5a
feat: use go-parse-duration for time parameters (#69)
* feat: use `go-parse-duration` for time parameters

* revert: accidental parameter type change

* refactor: move `parse_duration` to `mod.rs`

* refactor: use functional approach to handle error

* refactor: remove unused import

---------

Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
2023-05-12 01:42:52 +03:00
oSumAtrIX
85b43f1c59
chore: update cargo dependencies 2023-03-27 01:51:13 +02:00
Ax333l
05ff0a27d2
fix(moderation): properly convert UserId to Member (#50) 2023-01-07 00:03:46 +00:00
Ax333l
bf0c34e167 fix(moderation): don't fail when taken_roles is empty 2023-01-04 17:02:34 +01:00
Ax333l
4c35fe5327 refactor(moderation): improve unmute scheduling 2023-01-03 13:58:45 +01:00
Ax333l
5fcad81483 fix(moderation): UserId instead of Member parameter
Context: https://github.com/revanced/revanced-discord-bot/issues/38
2023-01-03 13:58:45 +01:00
Canny
573d907c1d
feat: permanently mute when no duration is specified (#44)
* feat: permanently mute when no duration is specified

Co-authored-by: Sculas <contact@sculas.xyz>

Co-authored-by: Ax333l <Axelen123@users.noreply.github.com>

* refactor: remove unneeded if statement

* fix: unset expires field when permanently muting

* fix: clippy

Co-authored-by: Ax333l <Axelen123@users.noreply.github.com>
Co-authored-by: Ax333l <main@axelen.xyz>
2022-12-19 18:02:20 +00:00
Ushie
78f954b7e8
feat(moderation): improve log embeds (#37)
Co-authored-by: Ax333l <main@axelen.xyz>
2022-12-03 03:58:38 +01:00
oSumAtrIX
6e9f20df05
fix(moderation): only mute on rejoin if previously muted 2022-10-07 11:03:12 +02:00
oSumAtrIX
abdc0922eb
feat: lock & unlock commands 2022-08-30 02:27:15 +02:00
oSumAtrIX
4ab4c7e00c
feat: media and logging channels and unban command 2022-08-28 07:34:59 +02:00
oSumAtrIX
b7d333c86c
feat: unban command 2022-08-28 02:08:00 +02:00
oSumAtrIX
042fc8c466
feat: handle mute when rejoining the server 2022-08-25 23:15:09 +02:00
oSumAtrIX
3ad345b009
perf: clone Arc of data.database 2022-08-25 03:36:23 +02:00
oSumAtrIX
ef1ddf50fd
refactor: remove unused lifetime 2022-08-21 22:51:00 +02:00
oSumAtrIX
3f1d6af569
refactor: remove unnecessary mutex 2022-08-21 22:43:42 +02:00
oSumAtrIX
54171ba2ce
feat: moderation commands 2022-08-20 15:45:02 +02:00