nuxt-discord 0.0.5 → 0.0.6

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-discord",
3
3
  "configKey": "discord",
4
- "version": "0.0.5",
4
+ "version": "0.0.6",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
@@ -1,3 +1,4 @@
1
+ import slashCommands from "discord/slashCommands";
1
2
  import { defineNitroPlugin, useRuntimeConfig } from "nitropack/runtime";
2
3
  import { DiscordClient } from "../utils/client.js";
3
4
  export default defineNitroPlugin(async (nitro) => {
@@ -29,6 +30,7 @@ export default defineNitroPlugin(async (nitro) => {
29
30
  });
30
31
  nitro.hooks.hook("close", () => socket.close());
31
32
  }
33
+ client.addSlashCommands(slashCommands);
32
34
  if (runtimeConfig.discord.sync) {
33
35
  await client.registerSlashCommands();
34
36
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-discord",
3
3
  "type": "module",
4
- "version": "0.0.5",
4
+ "version": "0.0.6",
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",