@magicyan/discord 1.2.1 → 1.2.2

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.
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var EmbedLimit = /* @__PURE__ */ ((EmbedLimit2) => {
4
+ EmbedLimit2[EmbedLimit2["AuthorName"] = 256] = "AuthorName";
5
+ EmbedLimit2[EmbedLimit2["Title"] = 256] = "Title";
6
+ EmbedLimit2[EmbedLimit2["Description"] = 4096] = "Description";
7
+ EmbedLimit2[EmbedLimit2["Fields"] = 25] = "Fields";
8
+ EmbedLimit2[EmbedLimit2["FieldName"] = 256] = "FieldName";
9
+ EmbedLimit2[EmbedLimit2["FieldValue"] = 1024] = "FieldValue";
10
+ EmbedLimit2[EmbedLimit2["FooterText"] = 2048] = "FooterText";
11
+ EmbedLimit2[EmbedLimit2["URL"] = 2048] = "URL";
12
+ return EmbedLimit2;
13
+ })(EmbedLimit || {});
14
+
15
+ exports.EmbedLimit = EmbedLimit;
@@ -0,0 +1,13 @@
1
+ var EmbedLimit = /* @__PURE__ */ ((EmbedLimit2) => {
2
+ EmbedLimit2[EmbedLimit2["AuthorName"] = 256] = "AuthorName";
3
+ EmbedLimit2[EmbedLimit2["Title"] = 256] = "Title";
4
+ EmbedLimit2[EmbedLimit2["Description"] = 4096] = "Description";
5
+ EmbedLimit2[EmbedLimit2["Fields"] = 25] = "Fields";
6
+ EmbedLimit2[EmbedLimit2["FieldName"] = 256] = "FieldName";
7
+ EmbedLimit2[EmbedLimit2["FieldValue"] = 1024] = "FieldValue";
8
+ EmbedLimit2[EmbedLimit2["FooterText"] = 2048] = "FooterText";
9
+ EmbedLimit2[EmbedLimit2["URL"] = 2048] = "URL";
10
+ return EmbedLimit2;
11
+ })(EmbedLimit || {});
12
+
13
+ export { EmbedLimit };
package/dist/index.cjs CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  const chars = require('./constants/chars.cjs');
4
4
  const client = require('./constants/client.cjs');
5
+ const embed = require('./constants/embed.cjs');
5
6
  const misc = require('./functions/misc.cjs');
6
7
  const assets = require('./functions/embeds/assets.cjs');
7
8
  const author = require('./functions/embeds/author.cjs');
@@ -24,6 +25,7 @@ const core = require('@magicyan/core');
24
25
  exports.chars = chars.chars;
25
26
  exports.CustomItents = client.CustomItents;
26
27
  exports.CustomPartials = client.CustomPartials;
28
+ exports.EmbedLimit = embed.EmbedLimit;
27
29
  exports.setMobileStatus = misc.setMobileStatus;
28
30
  exports.createEmbedAsset = assets.createEmbedAsset;
29
31
  exports.createEmbedAuthor = author.createEmbedAuthor;
package/dist/index.d.cts CHANGED
@@ -16,6 +16,21 @@ declare const CustomPartials: {
16
16
  All: Partials[];
17
17
  };
18
18
 
19
+ /**
20
+ * Embed limits
21
+ * @see https://discordjs.guide/popular-topics/embeds.html#embed-limits
22
+ */
23
+ declare enum EmbedLimit {
24
+ AuthorName = 256,
25
+ Title = 256,
26
+ Description = 4096,
27
+ Fields = 25,
28
+ FieldName = 256,
29
+ FieldValue = 1024,
30
+ FooterText = 2048,
31
+ URL = 2048
32
+ }
33
+
19
34
  declare function setMobileStatus(): void;
20
35
 
21
36
  type EmbedPlusAssetData = string | Attachment | AttachmentBuilder | EmbedAssetData | undefined | null;
@@ -293,4 +308,4 @@ declare function findRole(guild: Guild): {
293
308
  */
294
309
  declare function extractMentionId(mention: string): string | null;
295
310
 
296
- export { type AnyEmbedData, CustomItents, CustomPartials, type EmbedPlusAssetData, type EmbedPlusAuthorData, EmbedPlusBuilder, type EmbedPlusColorData, type EmbedPlusData, type EmbedPlusFooterData, type EmbedPlusProperty, chars, commandMention, createEmbed, createEmbedAsset, createEmbedAuthor, createEmbedFiles, createEmbedFooter, createLinkButton, createModalFields, createModalInput, createRow, extractMentionId, findChannel, findCommand, findEmoji, findMember, findMessage, findRole, getChannelUrlInfo, getMessageUrlInfo, modalFieldsToRecord, setMobileStatus };
311
+ export { type AnyEmbedData, CustomItents, CustomPartials, EmbedLimit, type EmbedPlusAssetData, type EmbedPlusAuthorData, EmbedPlusBuilder, type EmbedPlusColorData, type EmbedPlusData, type EmbedPlusFooterData, type EmbedPlusProperty, chars, commandMention, createEmbed, createEmbedAsset, createEmbedAuthor, createEmbedFiles, createEmbedFooter, createLinkButton, createModalFields, createModalInput, createRow, extractMentionId, findChannel, findCommand, findEmoji, findMember, findMessage, findRole, getChannelUrlInfo, getMessageUrlInfo, modalFieldsToRecord, setMobileStatus };
package/dist/index.d.mts CHANGED
@@ -16,6 +16,21 @@ declare const CustomPartials: {
16
16
  All: Partials[];
17
17
  };
18
18
 
19
+ /**
20
+ * Embed limits
21
+ * @see https://discordjs.guide/popular-topics/embeds.html#embed-limits
22
+ */
23
+ declare enum EmbedLimit {
24
+ AuthorName = 256,
25
+ Title = 256,
26
+ Description = 4096,
27
+ Fields = 25,
28
+ FieldName = 256,
29
+ FieldValue = 1024,
30
+ FooterText = 2048,
31
+ URL = 2048
32
+ }
33
+
19
34
  declare function setMobileStatus(): void;
20
35
 
21
36
  type EmbedPlusAssetData = string | Attachment | AttachmentBuilder | EmbedAssetData | undefined | null;
@@ -293,4 +308,4 @@ declare function findRole(guild: Guild): {
293
308
  */
294
309
  declare function extractMentionId(mention: string): string | null;
295
310
 
296
- export { type AnyEmbedData, CustomItents, CustomPartials, type EmbedPlusAssetData, type EmbedPlusAuthorData, EmbedPlusBuilder, type EmbedPlusColorData, type EmbedPlusData, type EmbedPlusFooterData, type EmbedPlusProperty, chars, commandMention, createEmbed, createEmbedAsset, createEmbedAuthor, createEmbedFiles, createEmbedFooter, createLinkButton, createModalFields, createModalInput, createRow, extractMentionId, findChannel, findCommand, findEmoji, findMember, findMessage, findRole, getChannelUrlInfo, getMessageUrlInfo, modalFieldsToRecord, setMobileStatus };
311
+ export { type AnyEmbedData, CustomItents, CustomPartials, EmbedLimit, type EmbedPlusAssetData, type EmbedPlusAuthorData, EmbedPlusBuilder, type EmbedPlusColorData, type EmbedPlusData, type EmbedPlusFooterData, type EmbedPlusProperty, chars, commandMention, createEmbed, createEmbedAsset, createEmbedAuthor, createEmbedFiles, createEmbedFooter, createLinkButton, createModalFields, createModalInput, createRow, extractMentionId, findChannel, findCommand, findEmoji, findMember, findMessage, findRole, getChannelUrlInfo, getMessageUrlInfo, modalFieldsToRecord, setMobileStatus };
package/dist/index.d.ts CHANGED
@@ -16,6 +16,21 @@ declare const CustomPartials: {
16
16
  All: Partials[];
17
17
  };
18
18
 
19
+ /**
20
+ * Embed limits
21
+ * @see https://discordjs.guide/popular-topics/embeds.html#embed-limits
22
+ */
23
+ declare enum EmbedLimit {
24
+ AuthorName = 256,
25
+ Title = 256,
26
+ Description = 4096,
27
+ Fields = 25,
28
+ FieldName = 256,
29
+ FieldValue = 1024,
30
+ FooterText = 2048,
31
+ URL = 2048
32
+ }
33
+
19
34
  declare function setMobileStatus(): void;
20
35
 
21
36
  type EmbedPlusAssetData = string | Attachment | AttachmentBuilder | EmbedAssetData | undefined | null;
@@ -293,4 +308,4 @@ declare function findRole(guild: Guild): {
293
308
  */
294
309
  declare function extractMentionId(mention: string): string | null;
295
310
 
296
- export { type AnyEmbedData, CustomItents, CustomPartials, type EmbedPlusAssetData, type EmbedPlusAuthorData, EmbedPlusBuilder, type EmbedPlusColorData, type EmbedPlusData, type EmbedPlusFooterData, type EmbedPlusProperty, chars, commandMention, createEmbed, createEmbedAsset, createEmbedAuthor, createEmbedFiles, createEmbedFooter, createLinkButton, createModalFields, createModalInput, createRow, extractMentionId, findChannel, findCommand, findEmoji, findMember, findMessage, findRole, getChannelUrlInfo, getMessageUrlInfo, modalFieldsToRecord, setMobileStatus };
311
+ export { type AnyEmbedData, CustomItents, CustomPartials, EmbedLimit, type EmbedPlusAssetData, type EmbedPlusAuthorData, EmbedPlusBuilder, type EmbedPlusColorData, type EmbedPlusData, type EmbedPlusFooterData, type EmbedPlusProperty, chars, commandMention, createEmbed, createEmbedAsset, createEmbedAuthor, createEmbedFiles, createEmbedFooter, createLinkButton, createModalFields, createModalInput, createRow, extractMentionId, findChannel, findCommand, findEmoji, findMember, findMessage, findRole, getChannelUrlInfo, getMessageUrlInfo, modalFieldsToRecord, setMobileStatus };
package/dist/index.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  export { chars } from './constants/chars.mjs';
2
2
  export { CustomItents, CustomPartials } from './constants/client.mjs';
3
+ export { EmbedLimit } from './constants/embed.mjs';
3
4
  export { setMobileStatus } from './functions/misc.mjs';
4
5
  export { createEmbedAsset } from './functions/embeds/assets.mjs';
5
6
  export { createEmbedAuthor } from './functions/embeds/author.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicyan/discord",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Simple functions to facilitate discord bot development",
5
5
  "license": "MIT",
6
6
  "type": "module",