feat: add slowmode to audit log
Signed-off-by: Zomatree <me@zomatree.live>
This commit is contained in:
@@ -718,6 +718,7 @@ impl Channel {
|
|||||||
role_permissions,
|
role_permissions,
|
||||||
nsfw,
|
nsfw,
|
||||||
voice,
|
voice,
|
||||||
|
slowmode,
|
||||||
..
|
..
|
||||||
} => {
|
} => {
|
||||||
if partial.name.is_some() {
|
if partial.name.is_some() {
|
||||||
@@ -753,6 +754,10 @@ impl Channel {
|
|||||||
if partial.voice.is_some() || remove.contains(&FieldsChannel::Voice) {
|
if partial.voice.is_some() || remove.contains(&FieldsChannel::Voice) {
|
||||||
before.voice = voice.clone();
|
before.voice = voice.clone();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if partial.slowmode.is_some() {
|
||||||
|
before.slowmode = *slowmode;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user