@magicyan/discord 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/index.d.ts +30 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicyan/discord",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -0,0 +1,30 @@
1
+ import {
2
+ EmbedAuthorData,
3
+ ImageURLOptions,
4
+ User,
5
+ ActionRowBuilder,
6
+ AnyComponentBuilder,
7
+ ButtonBuilder,
8
+ LinkButtonComponentData,
9
+ TextInputBuilder,
10
+ TextInputComponentData
11
+ } from "discord.js";
12
+
13
+ export declare function createEmbedAuthor({
14
+ user,property, imageSize: size, iconURL, url, prefix, suffix
15
+ }:{
16
+ user: User;
17
+ property?: keyof Pick<User, "username" | "displayName" | "id">;
18
+ imageSize?: ImageURLOptions["size"];
19
+ iconURL?: string;
20
+ url?: string;
21
+ prefix?: string;
22
+ suffix?: string;
23
+ }): EmbedAuthorData;
24
+
25
+ export declare function createRow<Component extends AnyComponentBuilder = AnyComponentBuilder>(...components: Component[]): ActionRowBuilder<Component>;
26
+ export declare function createModalInput(data: Omit<TextInputComponentData, "type">): ActionRowBuilder<TextInputBuilder>;
27
+ export declare function createLinkButton(data: Omit<LinkButtonComponentData, "style" | "type">): ButtonBuilder;
28
+
29
+ // external
30
+ export * from "@magicyan/core";