@spatulox/simplediscordbot 1.0.3 → 1.0.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spatulox/simplediscordbot",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "author": "Spatulox",
5
5
  "description": "Simple discord bot framework to set up a bot under 30 secondes",
6
6
  "main": "./dist/index.js",
@@ -1,11 +0,0 @@
1
- Discord Command type :
2
- 1. SUB_COMMAND (default)
3
- 2. SUB_COMMAND_GROUP
4
- 3. STRING
5
- 4. INTEGER
6
- 5. BOOLEAN
7
- 6. USER
8
- 7. CHANNEL
9
- 8. ROLE
10
- 9. MENTIONABLE
11
- 10. NUMBER
@@ -1,144 +0,0 @@
1
- {
2
- "name": "server-management",
3
- "type": 1,
4
- "description": "Manage various aspects of the server",
5
- "permissions": ["admin", "manage_role", "manage_users"],
6
- "permissionsComment": "if undefined, or empty, all user gonna have access to the command",
7
- "options": [
8
- {
9
- "type": 2,
10
- "name": "user",
11
- "description": "User management commands",
12
- "options": [
13
- {
14
- "type": 1,
15
- "name": "info",
16
- "description": "Get information about a user",
17
- "options": [
18
- {
19
- "type": 6,
20
- "name": "target",
21
- "description": "The user to get information about",
22
- "required": true
23
- }
24
- ]
25
- },
26
- {
27
- "type": 1,
28
- "name": "role",
29
- "description": "Manage user roles",
30
- "options": [
31
- {
32
- "type": 6,
33
- "name": "user",
34
- "description": "The user to manage roles for",
35
- "required": true
36
- },
37
- {
38
- "type": 8,
39
- "name": "role",
40
- "description": "The role to add or remove",
41
- "required": true
42
- },
43
- {
44
- "type": 5,
45
- "name": "add",
46
- "description": "Add the role if true, remove if false",
47
- "required": true
48
- }
49
- ]
50
- }
51
- ]
52
- },
53
- {
54
- "type": 1,
55
- "name": "channel",
56
- "description": "Manage server channels",
57
- "options": [
58
- {
59
- "type": 7,
60
- "name": "target",
61
- "description": "The channel to manage",
62
- "required": true
63
- },
64
- {
65
- "type": 3,
66
- "name": "action",
67
- "description": "The action to perform",
68
- "required": true,
69
- "choices": [
70
- {
71
- "name": "Rename",
72
- "value": "rename"
73
- },
74
- {
75
- "name": "Delete",
76
- "value": "delete"
77
- },
78
- {
79
- "name": "Archive",
80
- "value": "archive"
81
- }
82
- ]
83
- },
84
- {
85
- "type": 3,
86
- "name": "new_name",
87
- "description": "New name for the channel (only for rename action)",
88
- "required": false,
89
- "min_length": 1,
90
- "max_length": 100
91
- }
92
- ]
93
- },
94
- {
95
- "type": 1,
96
- "name": "server-stats",
97
- "description": "Get server statistics",
98
- "options": [
99
- {
100
- "type": 4,
101
- "name": "days",
102
- "description": "Number of days to get stats for",
103
- "required": false,
104
- "min_value": 1,
105
- "max_value": 30
106
- },
107
- {
108
- "type": 10,
109
- "name": "activity-threshold",
110
- "description": "Minimum activity level to consider",
111
- "required": false,
112
- "min_value": 0.0,
113
- "max_value": 1.0
114
- }
115
- ]
116
- },
117
- {
118
- "type": 1,
119
- "name": "announcement",
120
- "description": "Make a server announcement",
121
- "options": [
122
- {
123
- "type": 3,
124
- "name": "message",
125
- "description": "The announcement message",
126
- "required": true
127
- },
128
- {
129
- "type": 7,
130
- "name": "channel",
131
- "description": "The channel to post the announcement in",
132
- "required": true,
133
- "channel_types": [0, 5]
134
- },
135
- {
136
- "type": 11,
137
- "name": "attachment",
138
- "description": "An optional attachment for the announcement",
139
- "required": false
140
- }
141
- ]
142
- }
143
- ]
144
- }
@@ -1,32 +0,0 @@
1
- {
2
- "name": "example",
3
- "description": "Description",
4
- "defaultMemberPermissions": ["Administrator"],
5
- "dmPermission": false,
6
- "integration_types":[0,1],
7
- "integration_type_comment":{
8
- "0":"GUILD_INSTALL",
9
- "1":"USER_INSTALL"
10
- },
11
- "contexts": [0,1,2],
12
- "contexts_comment": {
13
- "0":"Interaction can be used inside server",
14
- "1":"Interaction can be used inside DMs with the app's bot user",
15
- "2":"Interaction can be used inside Groups DMs and DMs other than the app bot user"
16
- },
17
- "options": [
18
- {
19
- "type": 3,
20
- "name": "parametre",
21
- "description": "Description paramètre",
22
- "required": true,
23
- "choices": [
24
- {
25
- "name": "Option 1",
26
- "value": "valeur1"
27
- }
28
- ]
29
- }
30
- ]
31
- }
32
-
@@ -1,24 +0,0 @@
1
- {
2
- "name": "Example context Menu",
3
- "type": 3,
4
- "type_comment": [
5
- "1 => It's like a Slash command",
6
- "2 => Context Menu for users",
7
- "3 => Context Menu for messages"
8
- ],
9
- "default_member_permissions": ["ModerateMembers", "KickMembers", "BanMembers"],
10
- "default_member_permissions_comment": "It's the same as the PermissionFlagsBits enum from discordjs",
11
- "dm_permission": false,
12
- "integration_types": [0, 1],
13
- "integration_type_comment":{
14
- "0":"GUILD_INSTALL",
15
- "1":"USER_INSTALL"
16
- },
17
- "contexts": [0, 1, 2],
18
- "contexts_comment": {
19
- "0":"Interaction can be used inside server",
20
- "1":"Interaction can be used inside DMs with the app's bot user",
21
- "2":"Interaction can be used inside Groups DMs and DMs other than the app bot user"
22
- },
23
- "guildID":["1111160769132896377", "1214320754578165901"]
24
- }
@@ -1,51 +0,0 @@
1
- {
2
- "title": "Example Modal",
3
- "customId": "example_modal",
4
- "label": "example_modal",
5
- "fields": [
6
- {
7
- "title": "Name",
8
- "customId": "name",
9
- "placeholder": "Name",
10
- "required": true,
11
- "style": 1,
12
- "minLength": 3,
13
- "maxLength": 100
14
- },
15
- {
16
- "title": "Description",
17
- "customId": "description",
18
- "placeholder": "Description",
19
- "required": true,
20
- "style": 2,
21
- "maxLength": 400
22
- },
23
- {
24
- "title": "Phone",
25
- "customId": "phone",
26
- "placeholder": "Phone",
27
- "required": true,
28
- "style": "Phone",
29
- "minLength": 10,
30
- "maxLength": 10
31
- },
32
- {
33
- "title": "Age",
34
- "customId": "age",
35
- "placeholder": "Age",
36
- "required": true,
37
- "style": "Number",
38
- "minLength": 1,
39
- "maxLength": 2
40
- },
41
- {
42
- "title": "Birthday",
43
- "customId": "birthday",
44
- "placeholder": "Birthday",
45
- "required": true,
46
- "style": "Date",
47
- "minLength": 10,
48
- "maxLength": 10
49
- }
50
- ]
51
- }
Binary file