mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-07 19:17:19 +00:00
Merge branch '240811_application_commands_merge_2' into next
This commit is contained in:
commit
43b8017985
279 changed files with 6192 additions and 3044 deletions
|
@ -76,10 +76,13 @@ export async function logAndDetectMessageSpam(
|
|||
(spamConfig.mute_time && convertDelayStringToMS(spamConfig.mute_time.toString())) ?? 120 * 1000;
|
||||
|
||||
try {
|
||||
const reason = "Automatic spam detection";
|
||||
|
||||
muteResult = await mutesPlugin.muteUser(
|
||||
member.id,
|
||||
muteTime,
|
||||
"Automatic spam detection",
|
||||
reason,
|
||||
reason,
|
||||
{
|
||||
caseArgs: {
|
||||
modId: pluginData.client.user!.id,
|
||||
|
|
|
@ -40,10 +40,13 @@ export async function logAndDetectOtherSpam(
|
|||
(spamConfig.mute_time && convertDelayStringToMS(spamConfig.mute_time.toString())) ?? 120 * 1000;
|
||||
|
||||
try {
|
||||
const reason = "Automatic spam detection";
|
||||
|
||||
await mutesPlugin.muteUser(
|
||||
member.id,
|
||||
muteTime,
|
||||
"Automatic spam detection",
|
||||
reason,
|
||||
reason,
|
||||
{
|
||||
caseArgs: {
|
||||
modId: pluginData.client.user!.id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue