nuxt-discord 0.0.2 → 0.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/README.md CHANGED
@@ -20,7 +20,7 @@ A Nuxt module for building Discord bots with slash commands, featuring hot modul
20
20
  Install the module to your Nuxt application:
21
21
 
22
22
  ```bash
23
- npm install nuxt-discord discord.js
23
+ pnpm install nuxt-discord discord.js
24
24
  ```
25
25
 
26
26
  Add the module to your `nuxt.config.ts`:
@@ -276,7 +276,7 @@ Here's what's planned for future releases:
276
276
  - [@nuxt/content](https://github.com/nuxt/content)
277
277
  - [@nuxtjs/i18n](https://github.com/nuxt-modules/i18n)
278
278
  - [@nuxt/devtools](https://github.com/nuxt/devtools)
279
- - UI components are based on [Nuxt UI](https://nuxtui.com) and [UnoCSS](https://unocss.dev/)
279
+ - UI components are based on [Nuxt UI](https://ui.nuxt.com/) and [UnoCSS](https://unocss.dev/)
280
280
 
281
281
  ## License
282
282
 
@@ -285,7 +285,7 @@ Here's what's planned for future releases:
285
285
  [npm-version-src]: https://img.shields.io/npm/v/nuxt-discord/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
286
286
  [npm-version-href]: https://npmjs.com/package/nuxt-discord
287
287
 
288
- [license-src]: https://img.shields.io/github/license/zojize/nuxt-discord.svg?style=flat&colorA=18181B&colorB=28CF8D
288
+ [license-src]: https://img.shields.io/github/license/zojize/nuxt-discord?style=flat&colorA=18181B&colorB=28CF8D
289
289
  [license-href]: https://github.com/zojize/nuxt-discord/blob/main/LICENSE
290
290
 
291
291
  [nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-discord",
3
3
  "configKey": "discord",
4
- "version": "0.0.2",
4
+ "version": "0.0.4",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
@@ -25,6 +25,9 @@ export default defineNitroPlugin(async (nitro) => {
25
25
  socket.send(JSON.stringify({ event: "full-update" }));
26
26
  }
27
27
  });
28
+ socket.addEventListener("open", () => {
29
+ socket.send(JSON.stringify({ event: "full-update" }));
30
+ });
28
31
  nitro.hooks.hook("close", () => socket.close());
29
32
  }
30
33
  client.addSlashCommands(slashCommands);
@@ -336,7 +336,6 @@ export class DiscordClient {
336
336
  })
337
337
  );
338
338
  results.forEach((result, i) => {
339
- logger.log(result);
340
339
  if (result.status === "rejected") {
341
340
  this.#nitro.hooks.callHook("discord:client:error", {
342
341
  type: "SlashCommandRegistrationError",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-discord",
3
3
  "type": "module",
4
- "version": "0.0.2",
4
+ "version": "0.0.4",
5
5
  "description": "A Nuxt module for building Discord bots",
6
6
  "author": "Jize Zou <jeffzou2001@gmail.com> (https://github.com/zojize)",
7
7
  "license": "MIT",