@magicyan/discord 1.0.8 → 1.0.9

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
@@ -92,4 +92,18 @@ new EmbedBuilder({
92
92
  author: createEmbedAuthor({ user }),
93
93
  description: "My embed description"
94
94
  })
95
+ ```
96
+
97
+ Function to find a channel from the guild cache
98
+ ```ts
99
+ const { guild } = interaction
100
+
101
+ const channel = findChannel(guild, ChannelType.GuildVoice).byName("Lounge 01") // VoiceChannel | undefined
102
+ ```
103
+
104
+ Function to find a role from the guild cache
105
+ ```ts
106
+ const { guild } = interaction
107
+
108
+ const role = findChannel(guild).byName("Administrator") // Role | undefined
95
109
  ```
package/dist/index.js CHANGED
@@ -15,6 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./constants/client"), exports);
18
- __exportStar(require("./functions/utils"), exports);
18
+ __exportStar(require("./functions/channels"), exports);
19
19
  __exportStar(require("./functions/embeds"), exports);
20
+ __exportStar(require("./functions/roles"), exports);
21
+ __exportStar(require("./functions/utils"), exports);
20
22
  __exportStar(require("@magicyan/core"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicyan/discord",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/types/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  export * from "./constants/client";
2
- export * from "./functions/utils";
2
+ export * from "./functions/channels";
3
3
  export * from "./functions/embeds";
4
+ export * from "./functions/roles";
5
+ export * from "./functions/utils";
4
6
  export * from "@magicyan/core";