Skip to content

Commit dbae365

Browse files
committed
commit on 'v5'
1 parent d17f280 commit dbae365

File tree

2 files changed

+169
-25
lines changed

2 files changed

+169
-25
lines changed

aoi.code-snippets

Lines changed: 168 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,60 +4,60 @@
44
"scope": "javascript,typescript",
55
"prefix": "bot.status",
66
"body": [
7-
"bot.status({"
7+
"bot.status({",
88
"\ttext: \"${1:TEXT}\"",
99
"\ttype: \"${2:PLAYING}\"",
1010
"\tstatus: \"${3:idle}\"",
11-
"\ttime: 12"
12-
"})",
11+
"\ttime: 12",
12+
"})"
1313
],
1414
"description": "Setting a Client Status"
1515
},
1616
"Bot Variable": {
1717
"scope": "javascript,typescript",
1818
"prefix": "bot.variable",
1919
"body": [
20-
"bot.variable({"
20+
"bot.variable({",
2121
"\t\"string\": \"${1:string}\"",
2222
"\t\"int\": ${2:number}",
2323
"\t\"boolean\": \"${3:true/false}\"",
24-
"})",
24+
"})"
2525
],
2626
"description": "Setting a Client Variable"
2727
},
2828
"Bot Custom Function": {
2929
"scope": "javascript,typescript",
3030
"prefix": "bot.functionManager.createCustomFunction",
3131
"body": [
32-
"bot.functionManager.createCustomFunction({"
33-
"\tname: \"${1:name}\","
34-
"\tparams: [${2:\"params\"}],"
35-
"\ttype: ${3:\"aoi.js/djs\"},"
36-
"\tcode: `${4:The code to be returned}`"
37-
"})",
32+
"bot.functionManager.createCustomFunction({",
33+
"\tname: \"${1:name}\",",
34+
"\tparams: [${2:\"params\"}],",
35+
"\ttype: ${3:\"aoi.js/djs\"},",
36+
"\tcode: `${4:The code to be returned}`",
37+
"})"
3838
],
3939
"description": "Setting a Client Custom Functions"
4040
},
4141
"Bot Command": {
4242
"scope": "javascript,typescript",
4343
"prefix": "bot.command",
4444
"body": [
45-
"bot.command({"
46-
"\tname: \"${1:name}\","
47-
"\tcode: `${2:code}`"
48-
"})",
45+
"bot.command({",
46+
"\tname: \"${1:name}\",",
47+
"\tcode: `${2:code}`",
48+
"})"
4949
],
5050
"description": "Setting a Client Command"
5151
},
5252
"Bot Interaction Commands": {
5353
"scope": "javascript,typescript",
5454
"prefix": "bot.interactionCommand",
5555
"body": [
56-
"bot.interactionCommand({"
57-
"\tname: \"${1:name}\","
58-
"\tprototype: \"${2:type}\""
59-
"\tcode: `${3:code}`"
60-
"})",
56+
"bot.interactionCommand({",
57+
"\tname: \"${1:name}\",",
58+
"\tprototype: \"${2:type}\"",
59+
"\tcode: `${3:code}`",
60+
"})"
6161
],
6262
"description": "Setting a Client Interaction Command"
6363
},
@@ -66,33 +66,177 @@
6666
"scope": "javascript,typescript",
6767
"prefix": "bot.onLeave",
6868
"body": [
69-
"bot.onLeave()",
69+
"bot.onLeave()"
7070
],
7171
"description": "Events for logging members they leave servers"
7272
},
7373
"Bot.onJoined": {
7474
"scope": "javascript,typescript",
7575
"prefix": "bot.onJoined",
7676
"body": [
77-
"bot.onJoined()",
77+
"bot.onJoined()"
7878
],
7979
"description": "Events for logging members they join servers"
8080
},
81+
"Bot.onBanAdd": {
82+
"scope": "javascript,typescript",
83+
"prefix": "bot.onBanAdd",
84+
"body": [
85+
"bot.onBanAdd()"
86+
],
87+
"description": "Events for logging members they get banned in servers"
88+
},
89+
"Bot.onBanRemove": {
90+
"scope": "javascript,typescript",
91+
"prefix": "bot.onBanRemove",
92+
"body": [
93+
"bot.onBanRemove()"
94+
],
95+
"description": "Events for logging members they get unbanned in servers"
96+
},
97+
"Bot.onChannelCreate": {
98+
"scope": "javascript,typescript",
99+
"prefix": "bot.onChannelCreate",
100+
"body": [
101+
"bot.onChannelCreate()"
102+
],
103+
"description": "Events for logging channels they get created"
104+
},
105+
"Bot.onChannelDelete": {
106+
"scope": "javascript,typescript",
107+
"prefix": "bot.onChannelDelete",
108+
"body": [
109+
"bot.onChannelDelete()"
110+
],
111+
"description": "Events for logging channels they get deleted"
112+
},
113+
"Bot.onChannelUpdate": {
114+
"scope": "javascript,typescript",
115+
"prefix": "bot.onChannelUpdate",
116+
"body": [
117+
"bot.onChannelUpdate()"
118+
],
119+
"description": "Events for logging channels they get updated"
120+
},
121+
"Bot.onRoleCreate": {
122+
"scope": "javascript,typescript",
123+
"prefix": "bot.onRoleCreate",
124+
"body": [
125+
"bot.onRoleCreate()"
126+
],
127+
"description": "Events for logging roles they get created"
128+
},
129+
"Bot.onRoleDelete": {
130+
"scope": "javascript,typescript",
131+
"prefix": "bot.onRoleDelete",
132+
"body": [
133+
"bot.onRoleDelete()"
134+
],
135+
"description": "Events for logging roles they get deleted"
136+
},
137+
"Bot.onRoleUpdate": {
138+
"scope": "javascript,typescript",
139+
"prefix": "bot.onRoleUpdate",
140+
"body": [
141+
"bot.onRoleUpdate()"
142+
],
143+
"description": "Events for logging roles they get updated"
144+
},
81145
//Functions
82146
"abbreviate": {
83147
"scope": "javascript,typescript",
84148
"prefix": "abbreviate",
85149
"body": [
86-
"\\$abbreviate[${1:number};${2:decimal?}]",
150+
"\\$abbreviate[${1:number};${2:decimal?}]"
87151
],
88152
"description": "This function abbreviates large numbers."
89153
},
90154
"activity": {
91155
"scope": "javascript,typescript",
92156
"prefix": "activity",
93157
"body": [
94-
"\\$activity[${1:guildID};${2:userID?}]",
158+
"\\$activity[${1:guildID};${2:userID?}]"
95159
],
96160
"description": "This function shows the current activity of the indicated user (Only if it detects any activity), if the indicated user does not have an activity such as a 'custom status' it will show 'none'."
97161
},
162+
"addButton": {
163+
"scope": "javascript,typescript",
164+
"prefix": "addButton",
165+
"body": [
166+
"\\$addButton[${1:index};${2:label};${3:style};${4:customID};${5:disable?};${6:emoji?]}"
167+
],
168+
"description": "This function will add a button to bot's message."
169+
},
170+
"addCmdReactions": {
171+
"scope": "javascript,typescript",
172+
"prefix": "addCmdReactions",
173+
"body": [
174+
"\\$addCmdReactions[${1:emoji}]"
175+
],
176+
"description": "This function will adds single or multiple reactions to author's message."
177+
},
178+
"addEmoji": {
179+
"scope": "javascript,typescript",
180+
"prefix": "addEmoji",
181+
"body": [
182+
"\\$addEmoji[${1:guildID};${2:URL};${3:name};${4:return emoji?};${5:reason?};${6:roleID?}]"
183+
],
184+
"description": "This function will adds an emoji to given guild's ID, via URL for roles or letting everyone access to added emoji."
185+
},
186+
"addField": {
187+
"scope": "javascript,typescript",
188+
"prefix": "addField",
189+
"body": [
190+
"\\$addField[${1:index};${2:name};${3:text};${4:inline?}]"
191+
],
192+
"description": "This function will allows you to add a field to in embed message."
193+
},
194+
"addFields": {
195+
"scope": "javascript,typescript",
196+
"prefix": "addFields",
197+
"body": [
198+
"\\$addFields[${1:index}:${2:name}:${3:text}:${4:inline?}]"
199+
],
200+
"description": "This function will allows you to add a fields to in embed message."
201+
},
202+
"addMessageReactions": {
203+
"scope": "javascript,typescript",
204+
"prefix": "addMessageReactions",
205+
"body": [
206+
"\\$addMessageReactions[${1:channelID};${2:messageID};${3:emoji}]"
207+
],
208+
"description": "This function will add a reaction to the specified message ID."
209+
},
210+
"addObjectProperty": {
211+
"scope": "javascript,typescript",
212+
"prefix": "addObjectProperty",
213+
"body": [
214+
"\\$addObjectProperty[${1:key};${2:value}]"
215+
],
216+
"description": "This function will add properties (Keys) to an object previously created in JSON format."
217+
},
218+
"addReactions": {
219+
"scope": "javascript,typescript",
220+
"prefix": "addReactions",
221+
"body": [
222+
"\\$addReactions[${1:emoji}]"
223+
],
224+
"description": "This function will add reactions to bot's response."
225+
},
226+
"addSelectMenu": {
227+
"scope": "javascript,typescript",
228+
"prefix": "addSelectMenu",
229+
"body": [
230+
"\\$addSelectMenu[${1:index};${2:customID};${3:placeholder};${4:minimum value};${5:maximum value};${6:disable};${7:label}:${8:description}:${9:value}:${10:default?}:${11:emoji?}]"
231+
],
232+
"description": "This function that adds a selection menu to client's message."
233+
},
234+
"addThreadMember": {
235+
"scope": "javascript,typescript",
236+
"prefix": "addThreadMember",
237+
"body": [
238+
"\\$addThreadMember[${1:channelID};${2:threadID};${3:memberID};${4:reason?}]"
239+
],
240+
"description": "This function will add a member to a channel's thread."
241+
},
98242
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "aoijs-snippets",
33
"displayName": "Aoi.js Snippets",
4-
"version": "0.0.1",
4+
"version": "0.0.2",
55
"publisher": "LiyaInnessa",
66
"description": "This extension will make your coding experience much easier!",
77
"repository": {

0 commit comments

Comments
 (0)