seyfert 2.1.1-dev-11431445625.0 → 2.1.1-dev-11464165753.0

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.
@@ -25,7 +25,7 @@ export declare class Embed {
25
25
  * @example
26
26
  * embed.setAuthor({ name: 'John Doe', iconURL: 'https://example.com/avatar.png' });
27
27
  */
28
- setAuthor(author: ObjectToLower<APIEmbedAuthor>): this;
28
+ setAuthor(author?: ObjectToLower<APIEmbedAuthor>): this;
29
29
  /**
30
30
  * Sets the color of the embed.
31
31
  * @param color - The color of the embed.
@@ -34,7 +34,7 @@ export declare class Embed {
34
34
  * embed.setColor('#FF0000');
35
35
  * embed.setColor('Blurple');
36
36
  */
37
- setColor(color: ColorResolvable): this;
37
+ setColor(color?: ColorResolvable): this;
38
38
  /**
39
39
  * Sets the description of the embed.
40
40
  * @param desc - The description of the embed.
@@ -42,7 +42,7 @@ export declare class Embed {
42
42
  * @example
43
43
  * embed.setDescription('This is the description of the embed');
44
44
  */
45
- setDescription(desc: string): this;
45
+ setDescription(desc?: string): this;
46
46
  /**
47
47
  * Adds one or more fields to the embed.
48
48
  * @param fields - The fields to add to the embed.
@@ -58,7 +58,7 @@ export declare class Embed {
58
58
  * @example
59
59
  * embed.setFields([{ name: 'Field 1', value: 'Value 1' }, { name: 'Field 2', value: 'Value 2' }]);
60
60
  */
61
- setFields(fields: APIEmbedField[]): this;
61
+ setFields(fields?: APIEmbedField[]): this;
62
62
  /**
63
63
  * Sets the footer of the embed.
64
64
  * @param footer - The footer information.
@@ -66,7 +66,7 @@ export declare class Embed {
66
66
  * @example
67
67
  * embed.setFooter({ text: 'This is the footer', iconURL: 'https://example.com/footer.png' });
68
68
  */
69
- setFooter(footer: ObjectToLower<Omit<APIEmbedFooter, 'proxy_icon_url'>>): this;
69
+ setFooter(footer?: ObjectToLower<Omit<APIEmbedFooter, 'proxy_icon_url'>>): this;
70
70
  /**
71
71
  * Sets the image of the embed.
72
72
  * @param url - The URL of the image.
@@ -74,7 +74,7 @@ export declare class Embed {
74
74
  * @example
75
75
  * embed.setImage('https://example.com/image.png');
76
76
  */
77
- setImage(url: string): this;
77
+ setImage(url?: string): this;
78
78
  /**
79
79
  * Sets the timestamp of the embed.
80
80
  * @param time - The timestamp value.
@@ -92,7 +92,7 @@ export declare class Embed {
92
92
  * @example
93
93
  * embed.setTitle('This is the title');
94
94
  */
95
- setTitle(title: string): this;
95
+ setTitle(title?: string): this;
96
96
  /**
97
97
  * Sets the URL of the embed.
98
98
  * @param url - The URL of the embed.
@@ -100,7 +100,7 @@ export declare class Embed {
100
100
  * @example
101
101
  * embed.setURL('https://seyfert.com');
102
102
  */
103
- setURL(url: string): this;
103
+ setURL(url?: string): this;
104
104
  /**
105
105
  * Sets the thumbnail of the embed.
106
106
  * @param url - The URL of the thumbnail.
@@ -32,7 +32,7 @@ class Embed {
32
32
  * embed.setAuthor({ name: 'John Doe', iconURL: 'https://example.com/avatar.png' });
33
33
  */
34
34
  setAuthor(author) {
35
- this.data.author = (0, common_1.toSnakeCase)(author);
35
+ this.data.author = author && (0, common_1.toSnakeCase)(author);
36
36
  return this;
37
37
  }
38
38
  /**
@@ -44,7 +44,7 @@ class Embed {
44
44
  * embed.setColor('Blurple');
45
45
  */
46
46
  setColor(color) {
47
- this.data.color = (0, common_1.resolveColor)(color);
47
+ this.data.color = color && (0, common_1.resolveColor)(color);
48
48
  return this;
49
49
  }
50
50
  /**
@@ -77,7 +77,7 @@ class Embed {
77
77
  * embed.setFields([{ name: 'Field 1', value: 'Value 1' }, { name: 'Field 2', value: 'Value 2' }]);
78
78
  */
79
79
  setFields(fields) {
80
- this.data.fields = fields;
80
+ this.data.fields = fields ?? [];
81
81
  return this;
82
82
  }
83
83
  /**
@@ -88,7 +88,7 @@ class Embed {
88
88
  * embed.setFooter({ text: 'This is the footer', iconURL: 'https://example.com/footer.png' });
89
89
  */
90
90
  setFooter(footer) {
91
- this.data.footer = (0, common_1.toSnakeCase)(footer);
91
+ this.data.footer = footer && (0, common_1.toSnakeCase)(footer);
92
92
  return this;
93
93
  }
94
94
  /**
@@ -99,7 +99,7 @@ class Embed {
99
99
  * embed.setImage('https://example.com/image.png');
100
100
  */
101
101
  setImage(url) {
102
- this.data.image = { url };
102
+ this.data.image = url ? { url } : undefined;
103
103
  return this;
104
104
  }
105
105
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seyfert",
3
- "version": "2.1.1-dev-11431445625.0",
3
+ "version": "2.1.1-dev-11464165753.0",
4
4
  "description": "The most advanced framework for discord bots",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",