|
4 | 4 | "scope": "javascript,typescript", |
5 | 5 | "prefix": "bot.status", |
6 | 6 | "body": [ |
7 | | - "bot.status({" |
| 7 | + "bot.status({", |
8 | 8 | "\ttext: \"${1:TEXT}\"", |
9 | 9 | "\ttype: \"${2:PLAYING}\"", |
10 | 10 | "\tstatus: \"${3:idle}\"", |
11 | | - "\ttime: 12" |
12 | | - "})", |
| 11 | + "\ttime: 12", |
| 12 | + "})" |
13 | 13 | ], |
14 | 14 | "description": "Setting a Client Status" |
15 | 15 | }, |
16 | 16 | "Bot Variable": { |
17 | 17 | "scope": "javascript,typescript", |
18 | 18 | "prefix": "bot.variable", |
19 | 19 | "body": [ |
20 | | - "bot.variable({" |
| 20 | + "bot.variable({", |
21 | 21 | "\t\"string\": \"${1:string}\"", |
22 | 22 | "\t\"int\": ${2:number}", |
23 | 23 | "\t\"boolean\": \"${3:true/false}\"", |
24 | | - "})", |
| 24 | + "})" |
25 | 25 | ], |
26 | 26 | "description": "Setting a Client Variable" |
27 | 27 | }, |
28 | 28 | "Bot Custom Function": { |
29 | 29 | "scope": "javascript,typescript", |
30 | 30 | "prefix": "bot.functionManager.createCustomFunction", |
31 | 31 | "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 | + "})" |
38 | 38 | ], |
39 | 39 | "description": "Setting a Client Custom Functions" |
40 | 40 | }, |
41 | 41 | "Bot Command": { |
42 | 42 | "scope": "javascript,typescript", |
43 | 43 | "prefix": "bot.command", |
44 | 44 | "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 | + "})" |
49 | 49 | ], |
50 | 50 | "description": "Setting a Client Command" |
51 | 51 | }, |
52 | 52 | "Bot Interaction Commands": { |
53 | 53 | "scope": "javascript,typescript", |
54 | 54 | "prefix": "bot.interactionCommand", |
55 | 55 | "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 | + "})" |
61 | 61 | ], |
62 | 62 | "description": "Setting a Client Interaction Command" |
63 | 63 | }, |
|
66 | 66 | "scope": "javascript,typescript", |
67 | 67 | "prefix": "bot.onLeave", |
68 | 68 | "body": [ |
69 | | - "bot.onLeave()", |
| 69 | + "bot.onLeave()" |
70 | 70 | ], |
71 | 71 | "description": "Events for logging members they leave servers" |
72 | 72 | }, |
73 | 73 | "Bot.onJoined": { |
74 | 74 | "scope": "javascript,typescript", |
75 | 75 | "prefix": "bot.onJoined", |
76 | 76 | "body": [ |
77 | | - "bot.onJoined()", |
| 77 | + "bot.onJoined()" |
78 | 78 | ], |
79 | 79 | "description": "Events for logging members they join servers" |
80 | 80 | }, |
| 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 | + }, |
81 | 145 | //Functions |
82 | 146 | "abbreviate": { |
83 | 147 | "scope": "javascript,typescript", |
84 | 148 | "prefix": "abbreviate", |
85 | 149 | "body": [ |
86 | | - "\\$abbreviate[${1:number};${2:decimal?}]", |
| 150 | + "\\$abbreviate[${1:number};${2:decimal?}]" |
87 | 151 | ], |
88 | 152 | "description": "This function abbreviates large numbers." |
89 | 153 | }, |
90 | 154 | "activity": { |
91 | 155 | "scope": "javascript,typescript", |
92 | 156 | "prefix": "activity", |
93 | 157 | "body": [ |
94 | | - "\\$activity[${1:guildID};${2:userID?}]", |
| 158 | + "\\$activity[${1:guildID};${2:userID?}]" |
95 | 159 | ], |
96 | 160 | "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'." |
97 | 161 | }, |
| 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 | + }, |
98 | 242 | } |
0 commit comments