@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 +14 -0
- package/dist/index.js +3 -1
- package/package.json +1 -1
- package/types/index.d.ts +3 -1
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/
|
|
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
package/types/index.d.ts
CHANGED