gubo-data-types 0.1.9 → 0.1.10

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,34 +1,22 @@
1
1
  export interface ModerationCommandConfigBase {
2
- }
3
- export interface ModerationKickCommandConfig extends ModerationCommandConfigBase {
4
- cooldownSec?: number;
5
2
  logChannelId?: string | null;
6
- reasons?: string[];
3
+ silent?: boolean;
4
+ cooldownSec?: number;
7
5
  notifyStaffRoleIds?: string[];
8
- historyEnabled?: boolean;
6
+ chainedActions?: Array<'kick' | 'ban' | 'mute' | 'timeout'>;
7
+ }
8
+ export interface ModerationKickCommandConfig extends ModerationCommandConfigBase {
9
9
  scheduledKicks?: Array<{
10
10
  userId: string;
11
11
  scheduledAt: string;
12
12
  reason?: string;
13
13
  }>;
14
14
  massKickEnabled?: boolean;
15
- webhookUrl?: string | null;
16
- silentKickEnabled?: boolean;
17
- customReasons?: string[];
18
- chainedActions?: Array<'ban' | 'mute' | 'timeout'>;
19
- panelWebEnabled?: boolean;
15
+ skipedRolsForMassKick?: string[];
20
16
  }
21
17
  export interface ModerationBanCommandConfig extends ModerationCommandConfigBase {
22
18
  deleteMessageDays?: number;
23
19
  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
20
  }
33
21
  export type ModerationSlashCommandConfig = {
34
22
  name: 'kick';
@@ -30,32 +30,25 @@ exports.DEFAULT_MODERATION = {
30
30
  config: {
31
31
  cooldownSec: 60,
32
32
  logChannelId: null,
33
- reasons: ['Spam', 'Toxicidad', 'Incumplimiento de reglas'],
34
33
  notifyStaffRoleIds: [],
35
- historyEnabled: true,
34
+ silent: false,
36
35
  scheduledKicks: [],
37
36
  massKickEnabled: false,
38
- webhookUrl: null,
39
- silentKickEnabled: false,
40
- customReasons: [],
37
+ skipedRolsForMassKick: [],
41
38
  chainedActions: [],
42
- panelWebEnabled: true
43
39
  }
44
40
  },
45
41
  {
46
42
  name: 'ban',
47
43
  enabled: true,
48
44
  config: {
45
+ cooldownSec: 60,
46
+ logChannelId: null,
47
+ notifyStaffRoleIds: [],
48
+ silent: false,
49
49
  deleteMessageDays: 1,
50
50
  durationDays: 0,
51
- reasons: ['Spam', 'Toxicidad', 'Incumplimiento de reglas'],
52
- notifyStaffRoleIds: [],
53
- historyEnabled: true,
54
- webhookUrl: null,
55
- silentBanEnabled: false,
56
- customReasons: [],
57
51
  chainedActions: [],
58
- panelWebEnabled: true
59
52
  }
60
53
  }
61
54
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gubo-data-types",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Shared type definitions and defaults for GUBO Discord Bot (no firebase-admin dependency)",
5
5
  "license": "MIT",
6
6
  "private": false,