@alemonjs/discord 2.1.0-alpha.4 → 2.1.0-alpha.5

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/dist/index.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>AlemonJS</title>
8
8
  <script type="module" crossorigin src="/assets/index.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index.css">
9
+ <link rel="stylesheet" crossorigin href="/assets/index.css" />
10
10
  </head>
11
11
 
12
12
  <body>
package/lib/index.js CHANGED
@@ -202,7 +202,7 @@ var index = () => {
202
202
  use: {
203
203
  send: async (event, val) => {
204
204
  if (val.length < 0) {
205
- return Promise.all([]);
205
+ return [];
206
206
  }
207
207
  const tag = event.tag;
208
208
  if (tag == 'message.create') {
@@ -233,7 +233,7 @@ var index = () => {
233
233
  }, val);
234
234
  return [createResult(ResultCode.Ok, '请求完成', res)];
235
235
  }
236
- return Promise.all([]);
236
+ return [];
237
237
  },
238
238
  mention: async (e) => {
239
239
  const event = e.value;