gubo-data-types 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,3 +1,44 @@
|
|
|
1
|
+
export interface ModerationCommandConfigBase {
|
|
2
|
+
}
|
|
3
|
+
export interface ModerationKickCommandConfig extends ModerationCommandConfigBase {
|
|
4
|
+
cooldownSec?: number;
|
|
5
|
+
logChannelId?: string | null;
|
|
6
|
+
reasons?: string[];
|
|
7
|
+
notifyStaffRoleIds?: string[];
|
|
8
|
+
historyEnabled?: boolean;
|
|
9
|
+
scheduledKicks?: Array<{
|
|
10
|
+
userId: string;
|
|
11
|
+
scheduledAt: string;
|
|
12
|
+
reason?: string;
|
|
13
|
+
}>;
|
|
14
|
+
massKickEnabled?: boolean;
|
|
15
|
+
webhookUrl?: string | null;
|
|
16
|
+
silentKickEnabled?: boolean;
|
|
17
|
+
customReasons?: string[];
|
|
18
|
+
chainedActions?: Array<'ban' | 'mute' | 'timeout'>;
|
|
19
|
+
panelWebEnabled?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface ModerationBanCommandConfig extends ModerationCommandConfigBase {
|
|
22
|
+
deleteMessageDays?: number;
|
|
23
|
+
durationDays?: number;
|
|
24
|
+
reasons?: string[];
|
|
25
|
+
notifyStaffRoleIds?: string[];
|
|
26
|
+
historyEnabled?: boolean;
|
|
27
|
+
webhookUrl?: string | null;
|
|
28
|
+
silentBanEnabled?: boolean;
|
|
29
|
+
customReasons?: string[];
|
|
30
|
+
chainedActions?: Array<'kick' | 'mute' | 'timeout'>;
|
|
31
|
+
panelWebEnabled?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export type ModerationSlashCommandConfig = {
|
|
34
|
+
name: 'kick';
|
|
35
|
+
enabled: boolean;
|
|
36
|
+
config: ModerationKickCommandConfig;
|
|
37
|
+
} | {
|
|
38
|
+
name: 'ban';
|
|
39
|
+
enabled: boolean;
|
|
40
|
+
config: ModerationBanCommandConfig;
|
|
41
|
+
};
|
|
1
42
|
export interface ModerationAutoModFilters {
|
|
2
43
|
spam?: boolean;
|
|
3
44
|
caps?: boolean;
|
|
@@ -5,6 +46,7 @@ export interface ModerationAutoModFilters {
|
|
|
5
46
|
invites?: boolean;
|
|
6
47
|
badWordsEnabled?: boolean;
|
|
7
48
|
badWords?: string[];
|
|
49
|
+
stackWarnings?: boolean;
|
|
8
50
|
[key: string]: any;
|
|
9
51
|
}
|
|
10
52
|
export interface ModerationPluginConfig {
|
|
@@ -21,5 +63,6 @@ export interface ModerationPluginConfig {
|
|
|
21
63
|
updatedAt?: any | null;
|
|
22
64
|
updatedBy?: string | null;
|
|
23
65
|
version?: number;
|
|
66
|
+
slashCommands?: ModerationSlashCommandConfig[];
|
|
24
67
|
}
|
|
25
68
|
export declare const DEFAULT_MODERATION: ModerationPluginConfig;
|
|
@@ -13,7 +13,8 @@ exports.DEFAULT_MODERATION = {
|
|
|
13
13
|
links: false,
|
|
14
14
|
invites: false,
|
|
15
15
|
badWordsEnabled: false,
|
|
16
|
-
badWords: []
|
|
16
|
+
badWords: [],
|
|
17
|
+
stackWarnings: false
|
|
17
18
|
},
|
|
18
19
|
maxWarnings: 3,
|
|
19
20
|
autoActionOnMaxWarnings: 'none',
|
|
@@ -21,5 +22,41 @@ exports.DEFAULT_MODERATION = {
|
|
|
21
22
|
autoActionBanDurationDays: 0,
|
|
22
23
|
updatedAt: null,
|
|
23
24
|
updatedBy: null,
|
|
24
|
-
version: 0
|
|
25
|
+
version: 0,
|
|
26
|
+
slashCommands: [
|
|
27
|
+
{
|
|
28
|
+
name: 'kick',
|
|
29
|
+
enabled: true,
|
|
30
|
+
config: {
|
|
31
|
+
cooldownSec: 60,
|
|
32
|
+
logChannelId: null,
|
|
33
|
+
reasons: ['Spam', 'Toxicidad', 'Incumplimiento de reglas'],
|
|
34
|
+
notifyStaffRoleIds: [],
|
|
35
|
+
historyEnabled: true,
|
|
36
|
+
scheduledKicks: [],
|
|
37
|
+
massKickEnabled: false,
|
|
38
|
+
webhookUrl: null,
|
|
39
|
+
silentKickEnabled: false,
|
|
40
|
+
customReasons: [],
|
|
41
|
+
chainedActions: [],
|
|
42
|
+
panelWebEnabled: true
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'ban',
|
|
47
|
+
enabled: true,
|
|
48
|
+
config: {
|
|
49
|
+
deleteMessageDays: 1,
|
|
50
|
+
durationDays: 0,
|
|
51
|
+
reasons: ['Spam', 'Toxicidad', 'Incumplimiento de reglas'],
|
|
52
|
+
notifyStaffRoleIds: [],
|
|
53
|
+
historyEnabled: true,
|
|
54
|
+
webhookUrl: null,
|
|
55
|
+
silentBanEnabled: false,
|
|
56
|
+
customReasons: [],
|
|
57
|
+
chainedActions: [],
|
|
58
|
+
panelWebEnabled: true
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
]
|
|
25
62
|
};
|