@discordeno/utils 19.0.0-next.b6fec9c → 19.0.0-next.bb6b8df

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 (104) hide show
  1. package/README.md +7 -148
  2. package/dist/cjs/Collection.cjs +122 -0
  3. package/dist/cjs/base64.cjs +276 -0
  4. package/dist/cjs/bucket.cjs +96 -0
  5. package/dist/cjs/builders/embeds.cjs +292 -0
  6. package/dist/cjs/builders.cjs +27 -0
  7. package/dist/cjs/casing.cjs +75 -0
  8. package/dist/cjs/colors.cjs +456 -0
  9. package/dist/cjs/hash.cjs +37 -0
  10. package/dist/cjs/images.cjs +136 -0
  11. package/dist/cjs/index.cjs +36 -0
  12. package/dist/cjs/logger.cjs +157 -0
  13. package/dist/cjs/oauth2.cjs +26 -0
  14. package/dist/cjs/permissions.cjs +35 -0
  15. package/dist/cjs/reactions.cjs +21 -0
  16. package/dist/cjs/token.cjs +39 -0
  17. package/dist/cjs/typeguards.cjs +45 -0
  18. package/dist/cjs/urlToBase64.cjs +19 -0
  19. package/dist/cjs/urls.cjs +26 -0
  20. package/dist/cjs/utils.cjs +28 -0
  21. package/dist/esm/Collection.js +112 -0
  22. package/dist/esm/base64.js +262 -0
  23. package/dist/esm/bucket.js +81 -0
  24. package/dist/esm/builders/embeds.js +295 -0
  25. package/dist/esm/builders.js +5 -0
  26. package/dist/esm/casing.js +51 -0
  27. package/dist/esm/colors.js +467 -0
  28. package/dist/esm/hash.js +19 -0
  29. package/dist/esm/images.js +179 -0
  30. package/dist/esm/index.js +19 -0
  31. package/dist/esm/logger.js +130 -0
  32. package/dist/esm/oauth2.js +16 -0
  33. package/dist/esm/permissions.js +17 -0
  34. package/dist/esm/reactions.js +11 -0
  35. package/dist/esm/token.js +21 -0
  36. package/dist/esm/typeguards.js +18 -0
  37. package/dist/esm/urlToBase64.js +9 -0
  38. package/dist/esm/urls.js +8 -0
  39. package/dist/esm/utils.js +12 -0
  40. package/dist/{Collection.d.ts → types/Collection.d.ts} +2 -3
  41. package/dist/types/Collection.d.ts.map +1 -0
  42. package/dist/types/base64.d.ts.map +1 -0
  43. package/dist/types/bucket.d.ts +50 -0
  44. package/dist/types/bucket.d.ts.map +1 -0
  45. package/dist/types/builders/embeds.d.ts +146 -0
  46. package/dist/types/builders/embeds.d.ts.map +1 -0
  47. package/dist/types/builders.d.ts +4 -0
  48. package/dist/types/builders.d.ts.map +1 -0
  49. package/dist/types/casing.d.ts +6 -0
  50. package/dist/types/casing.d.ts.map +1 -0
  51. package/dist/types/colors.d.ts +275 -0
  52. package/dist/types/colors.d.ts.map +1 -0
  53. package/dist/types/hash.d.ts.map +1 -0
  54. package/dist/types/images.d.ts +202 -0
  55. package/dist/types/images.d.ts.map +1 -0
  56. package/dist/{index.d.ts → types/index.d.ts} +8 -1
  57. package/dist/types/index.d.ts.map +1 -0
  58. package/dist/types/logger.d.ts +36 -0
  59. package/dist/types/logger.d.ts.map +1 -0
  60. package/dist/types/oauth2.d.ts +69 -0
  61. package/dist/types/oauth2.d.ts.map +1 -0
  62. package/dist/types/permissions.d.ts.map +1 -0
  63. package/dist/types/reactions.d.ts +3 -0
  64. package/dist/types/reactions.d.ts.map +1 -0
  65. package/dist/{token.d.ts → types/token.d.ts} +1 -1
  66. package/dist/types/token.d.ts.map +1 -0
  67. package/dist/types/typeguards.d.ts +7 -0
  68. package/dist/types/typeguards.d.ts.map +1 -0
  69. package/dist/types/urlToBase64.d.ts.map +1 -0
  70. package/dist/types/urls.d.ts +4 -0
  71. package/dist/types/urls.d.ts.map +1 -0
  72. package/dist/types/utils.d.ts +5 -0
  73. package/dist/types/utils.d.ts.map +1 -0
  74. package/package.json +29 -25
  75. package/dist/Collection.d.ts.map +0 -1
  76. package/dist/Collection.js +0 -2
  77. package/dist/base64.d.ts.map +0 -1
  78. package/dist/base64.js +0 -2
  79. package/dist/bucket.d.ts +0 -49
  80. package/dist/bucket.d.ts.map +0 -1
  81. package/dist/bucket.js +0 -2
  82. package/dist/casing.d.ts +0 -4
  83. package/dist/casing.d.ts.map +0 -1
  84. package/dist/casing.js +0 -2
  85. package/dist/hash.d.ts.map +0 -1
  86. package/dist/hash.js +0 -2
  87. package/dist/images.d.ts +0 -23
  88. package/dist/images.d.ts.map +0 -1
  89. package/dist/images.js +0 -2
  90. package/dist/index.d.ts.map +0 -1
  91. package/dist/index.js +0 -2
  92. package/dist/permissions.d.ts.map +0 -1
  93. package/dist/permissions.js +0 -2
  94. package/dist/token.d.ts.map +0 -1
  95. package/dist/token.js +0 -2
  96. package/dist/urlToBase64.d.ts.map +0 -1
  97. package/dist/urlToBase64.js +0 -2
  98. package/dist/utils.d.ts +0 -6
  99. package/dist/utils.d.ts.map +0 -1
  100. package/dist/utils.js +0 -2
  101. /package/dist/{base64.d.ts → types/base64.d.ts} +0 -0
  102. /package/dist/{hash.d.ts → types/hash.d.ts} +0 -0
  103. /package/dist/{permissions.d.ts → types/permissions.d.ts} +0 -0
  104. /package/dist/{urlToBase64.d.ts → types/urlToBase64.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bucket.d.ts","sourceRoot":"","sources":["../../src/bucket.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAA;AAGhC,qBAAa,WAAY,YAAW,kBAAkB;IACpD,GAAG,EAAE,MAAM,CAAA;IACX,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;IAEpB,6DAA6D;IAC7D,IAAI,EAAE,MAAM,CAAI;IAChB,4FAA4F;IAC5F,KAAK,EAAE,KAAK,CAAC,CAAC,KAAK,EAAE,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,CAAK;IAC5D,sDAAsD;IACtD,UAAU,EAAE,OAAO,CAAQ;IAC3B,mFAAmF;IACnF,SAAS,CAAC,EAAE,MAAM,CAAC,OAAO,CAAA;IAC1B,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sCAAsC;IACtC,MAAM,EAAE,IAAI,CAAC,OAAO,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC,CAAA;gBAE9D,OAAO,CAAC,EAAE,kBAAkB;IAOxC,gDAAgD;IAChD,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED,oCAAoC;IACpC,YAAY,IAAI,IAAI;IAkBpB,kCAAkC;IAC5B,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAmDnC,sEAAsE;IAChE,OAAO,CAAC,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CAWrD;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC,OAAO,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC,CAAA;CAC5E"}
@@ -0,0 +1,146 @@
1
+ import type { DiscordEmbed, DiscordEmbedAuthor, DiscordEmbedField, DiscordEmbedFooter, DiscordEmbedImage, DiscordEmbedThumbnail, DiscordEmbedVideo } from '@discordeno/types';
2
+ /**
3
+ * A builder to help create Discord embeds.
4
+ *
5
+ * @export
6
+ * @class EmbedsBuilder
7
+ * @typedef {EmbedsBuilder}
8
+ * @extends {Array<DiscordEmbed>}
9
+ * @example
10
+ * const embeds = new EmbedBuilder()
11
+ * .setTitle('My Embed')
12
+ * .setDescription('This is my new embed')
13
+ * .newEmbed()
14
+ * .setTitle('My Second Embed')
15
+ */
16
+ export declare class EmbedsBuilder extends Array<DiscordEmbed> {
17
+ #private;
18
+ /**
19
+ * Adds a new field to the embed fields array.
20
+ *
21
+ * @param {string} name - Field name
22
+ * @param {string} value - Field value
23
+ * @param {?boolean} [inline=false] - Field should be inline or not.
24
+ * @returns {EmbedsBuilder}
25
+ */
26
+ addField(name: string, value: string, inline?: boolean): this;
27
+ /**
28
+ * Creates a blank embed.
29
+ *
30
+ * @returns {EmbedsBuilder}
31
+ */
32
+ newEmbed(): this;
33
+ /**
34
+ * Set the current embed author.
35
+ *
36
+ * @param {string} name - Name of the author
37
+ * @param {?Omit<DiscordEmbedAuthor, 'name'>} [options] - Extra author options
38
+ * @returns {EmbedsBuilder}
39
+ */
40
+ setAuthor(name: string, options?: Omit<DiscordEmbedAuthor, 'name'>): this;
41
+ /**
42
+ * Set the color on the side of the current embed.
43
+ *
44
+ * @param {(number | string)} color - The color, in base16 or hex color code
45
+ * @returns {EmbedsBuilder}
46
+ */
47
+ setColor(color: number | string): this;
48
+ /**
49
+ * Set the current embed to a different index.
50
+ *
51
+ * WARNING: Only use this method if you know what you're doing. Make sure to set it back to the latest when you're done.
52
+ *
53
+ * @param {?number} [index] - The index of the embed in the EmbedsBuilder array
54
+ * @returns {EmbedsBuilder}
55
+ */
56
+ setCurrentEmbed(index?: number): this;
57
+ /**
58
+ * Set the description of the current embed.
59
+ *
60
+ * @param {string} description - Description
61
+ * @returns {EmbedsBuilder}
62
+ */
63
+ setDescription(description: string): this;
64
+ /**
65
+ * Overwrite all fields on the current embed.
66
+ *
67
+ * @param {DiscordEmbedField[]} fields
68
+ * @returns {EmbedsBuilder}
69
+ */
70
+ setFields(fields: DiscordEmbedField[]): this;
71
+ /**
72
+ * Set the footer in the current embed.
73
+ *
74
+ * @param {string} text - The text to display in the footer
75
+ * @param {?Omit<DiscordEmbedFooter, 'text'>} [options]
76
+ * @returns {EmbedsBuilder}
77
+ */
78
+ setFooter(text: string, options?: Omit<DiscordEmbedFooter, 'text'>): this;
79
+ /**
80
+ * Set the image in the current embed.
81
+ *
82
+ * @param {string} url - URL of the image
83
+ * @param {?Omit<DiscordEmbedImage, 'url'>} [options]
84
+ * @returns {EmbedsBuilder}
85
+ */
86
+ setImage(url: string, options?: Omit<DiscordEmbedImage, 'url'>): this;
87
+ /**
88
+ * Set the provider of the current embed.
89
+ *
90
+ * @param {string} name
91
+ * @param {?string} [url]
92
+ * @returns {EmbedsBuilder}
93
+ */
94
+ setProvider(name: string, url?: string): this;
95
+ /**
96
+ * Set the color of the current embed to a random value.
97
+ *
98
+ * @returns {EmbedsBuilder}
99
+ */
100
+ setRandomColor(): this;
101
+ /**
102
+ * Set the title of the current embed.
103
+ *
104
+ * @param {string} title
105
+ * @param {?string} [url]
106
+ * @returns {EmbedsBuilder}
107
+ */
108
+ setTitle(title: string, url?: string): this;
109
+ /**
110
+ * Set the timestamp of the current embed.
111
+ *
112
+ * @param {?(string | number | Date)} [timestamp]
113
+ * @returns {EmbedsBuilder}
114
+ */
115
+ setTimestamp(timestamp?: string | number | Date): this;
116
+ /**
117
+ * Set the thumbnail of the current embed.
118
+ *
119
+ * @param {string} url - URL of the image
120
+ * @param {?Omit<DiscordEmbedThumbnail, 'url'>} [options]
121
+ * @returns {EmbedsBuilder}
122
+ */
123
+ setThumbnail(url: string, options?: Omit<DiscordEmbedThumbnail, 'url'>): this;
124
+ /**
125
+ * Set the URL of the current embed title.
126
+ *
127
+ * @param {string} url
128
+ * @returns {EmbedsBuilder}
129
+ */
130
+ setUrl(url: string): this;
131
+ /**
132
+ * Set the video of the current embed.
133
+ *
134
+ * @param {string} url
135
+ * @param {?Omit<DiscordEmbedVideo, 'url'>} [options]
136
+ * @returns {EmbedsBuilder}
137
+ */
138
+ setVideo(url: string, options?: Omit<DiscordEmbedVideo, 'url'>): this;
139
+ /**
140
+ * Validate all embeds available against current known Discord limits to help prevent bad requests.
141
+ *
142
+ * @returns {EmbedsBuilder}
143
+ */
144
+ validate(): this;
145
+ }
146
+ //# sourceMappingURL=embeds.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"embeds.d.ts","sourceRoot":"","sources":["../../../src/builders/embeds.ts"],"names":[],"mappings":"AAAA,OAAO,KA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MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI;IAU3C;;;;;OAKG;IACH,YAAY,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI;IAMtD;;;;;;OAMG;IACH,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,qBAAqB,EAAE,KAAK,CAAC,GAAG,IAAI;IAU7E;;;;;OAKG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAMzB;;;;;;OAMG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC,GAAG,IAAI;IAUrE;;;;OAIG;IACH,QAAQ,IAAI,IAAI;CA4FjB"}
@@ -0,0 +1,4 @@
1
+ import { EmbedsBuilder } from './builders/embeds.js';
2
+ export * from './builders/embeds.js';
3
+ export declare const createEmbeds: () => EmbedsBuilder;
4
+ //# sourceMappingURL=builders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builders.d.ts","sourceRoot":"","sources":["../../src/builders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,cAAc,sBAAsB,CAAA;AAEpC,eAAO,MAAM,YAAY,QAAO,aAAoC,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { Camelize, Snakelize } from '@discordeno/types';
2
+ export declare function camelize<T>(object: T): Camelize<T>;
3
+ export declare function snakelize<T>(object: T): Snakelize<T>;
4
+ export declare function snakeToCamelCase(str: string): string;
5
+ export declare function camelToSnakeCase(str: string): string;
6
+ //# sourceMappingURL=casing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"casing.d.ts","sourceRoot":"","sources":["../../src/casing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAE5D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAclD;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAcpD;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAepD;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAapD"}
@@ -0,0 +1,275 @@
1
+ export interface Code {
2
+ open: string;
3
+ close: string;
4
+ regexp: RegExp;
5
+ }
6
+ /** RGB 8-bits per channel. Each in range `0->255` or `0x00->0xff` */
7
+ export interface Rgb {
8
+ r: number;
9
+ g: number;
10
+ b: number;
11
+ }
12
+ /**
13
+ * Set changing text color to enabled or disabled
14
+ * @param value
15
+ */
16
+ export declare function setColorEnabled(value: boolean): void;
17
+ /** Get whether text color change is enabled or disabled. */
18
+ export declare function getColorEnabled(): boolean;
19
+ /**
20
+ * Reset the text modified
21
+ * @param str text to reset
22
+ */
23
+ export declare function reset(str: string): string;
24
+ /**
25
+ * Make the text bold.
26
+ * @param str text to make bold
27
+ */
28
+ export declare function bold(str: string): string;
29
+ /**
30
+ * The text emits only a small amount of light.
31
+ * @param str text to dim
32
+ */
33
+ export declare function dim(str: string): string;
34
+ /**
35
+ * Make the text italic.
36
+ * @param str text to make italic
37
+ */
38
+ export declare function italic(str: string): string;
39
+ /**
40
+ * Make the text underline.
41
+ * @param str text to underline
42
+ */
43
+ export declare function underline(str: string): string;
44
+ /**
45
+ * Invert background color and text color.
46
+ * @param str text to invert its color
47
+ */
48
+ export declare function inverse(str: string): string;
49
+ /**
50
+ * Make the text hidden.
51
+ * @param str text to hide
52
+ */
53
+ export declare function hidden(str: string): string;
54
+ /**
55
+ * Put horizontal line through the center of the text.
56
+ * @param str text to strike through
57
+ */
58
+ export declare function strikethrough(str: string): string;
59
+ /**
60
+ * Set text color to black.
61
+ * @param str text to make black
62
+ */
63
+ export declare function black(str: string): string;
64
+ /**
65
+ * Set text color to red.
66
+ * @param str text to make red
67
+ */
68
+ export declare function red(str: string): string;
69
+ /**
70
+ * Set text color to green.
71
+ * @param str text to make green
72
+ */
73
+ export declare function green(str: string): string;
74
+ /**
75
+ * Set text color to yellow.
76
+ * @param str text to make yellow
77
+ */
78
+ export declare function yellow(str: string): string;
79
+ /**
80
+ * Set text color to blue.
81
+ * @param str text to make blue
82
+ */
83
+ export declare function blue(str: string): string;
84
+ /**
85
+ * Set text color to magenta.
86
+ * @param str text to make magenta
87
+ */
88
+ export declare function magenta(str: string): string;
89
+ /**
90
+ * Set text color to cyan.
91
+ * @param str text to make cyan
92
+ */
93
+ export declare function cyan(str: string): string;
94
+ /**
95
+ * Set text color to white.
96
+ * @param str text to make white
97
+ */
98
+ export declare function white(str: string): string;
99
+ /**
100
+ * Set text color to gray.
101
+ * @param str text to make gray
102
+ */
103
+ export declare function gray(str: string): string;
104
+ /**
105
+ * Set text color to bright black.
106
+ * @param str text to make bright-black
107
+ */
108
+ export declare function brightBlack(str: string): string;
109
+ /**
110
+ * Set text color to bright red.
111
+ * @param str text to make bright-red
112
+ */
113
+ export declare function brightRed(str: string): string;
114
+ /**
115
+ * Set text color to bright green.
116
+ * @param str text to make bright-green
117
+ */
118
+ export declare function brightGreen(str: string): string;
119
+ /**
120
+ * Set text color to bright yellow.
121
+ * @param str text to make bright-yellow
122
+ */
123
+ export declare function brightYellow(str: string): string;
124
+ /**
125
+ * Set text color to bright blue.
126
+ * @param str text to make bright-blue
127
+ */
128
+ export declare function brightBlue(str: string): string;
129
+ /**
130
+ * Set text color to bright magenta.
131
+ * @param str text to make bright-magenta
132
+ */
133
+ export declare function brightMagenta(str: string): string;
134
+ /**
135
+ * Set text color to bright cyan.
136
+ * @param str text to make bright-cyan
137
+ */
138
+ export declare function brightCyan(str: string): string;
139
+ /**
140
+ * Set text color to bright white.
141
+ * @param str text to make bright-white
142
+ */
143
+ export declare function brightWhite(str: string): string;
144
+ /**
145
+ * Set background color to black.
146
+ * @param str text to make its background black
147
+ */
148
+ export declare function bgBlack(str: string): string;
149
+ /**
150
+ * Set background color to red.
151
+ * @param str text to make its background red
152
+ */
153
+ export declare function bgRed(str: string): string;
154
+ /**
155
+ * Set background color to green.
156
+ * @param str text to make its background green
157
+ */
158
+ export declare function bgGreen(str: string): string;
159
+ /**
160
+ * Set background color to yellow.
161
+ * @param str text to make its background yellow
162
+ */
163
+ export declare function bgYellow(str: string): string;
164
+ /**
165
+ * Set background color to blue.
166
+ * @param str text to make its background blue
167
+ */
168
+ export declare function bgBlue(str: string): string;
169
+ /**
170
+ * Set background color to magenta.
171
+ * @param str text to make its background magenta
172
+ */
173
+ export declare function bgMagenta(str: string): string;
174
+ /**
175
+ * Set background color to cyan.
176
+ * @param str text to make its background cyan
177
+ */
178
+ export declare function bgCyan(str: string): string;
179
+ /**
180
+ * Set background color to white.
181
+ * @param str text to make its background white
182
+ */
183
+ export declare function bgWhite(str: string): string;
184
+ /**
185
+ * Set background color to bright black.
186
+ * @param str text to make its background bright-black
187
+ */
188
+ export declare function bgBrightBlack(str: string): string;
189
+ /**
190
+ * Set background color to bright red.
191
+ * @param str text to make its background bright-red
192
+ */
193
+ export declare function bgBrightRed(str: string): string;
194
+ /**
195
+ * Set background color to bright green.
196
+ * @param str text to make its background bright-green
197
+ */
198
+ export declare function bgBrightGreen(str: string): string;
199
+ /**
200
+ * Set background color to bright yellow.
201
+ * @param str text to make its background bright-yellow
202
+ */
203
+ export declare function bgBrightYellow(str: string): string;
204
+ /**
205
+ * Set background color to bright blue.
206
+ * @param str text to make its background bright-blue
207
+ */
208
+ export declare function bgBrightBlue(str: string): string;
209
+ /**
210
+ * Set background color to bright magenta.
211
+ * @param str text to make its background bright-magenta
212
+ */
213
+ export declare function bgBrightMagenta(str: string): string;
214
+ /**
215
+ * Set background color to bright cyan.
216
+ * @param str text to make its background bright-cyan
217
+ */
218
+ export declare function bgBrightCyan(str: string): string;
219
+ /**
220
+ * Set background color to bright white.
221
+ * @param str text to make its background bright-white
222
+ */
223
+ export declare function bgBrightWhite(str: string): string;
224
+ /**
225
+ * Set text color using paletted 8bit colors.
226
+ * https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit
227
+ * @param str text color to apply paletted 8bit colors to
228
+ * @param color code
229
+ */
230
+ export declare function rgb8(str: string, color: number): string;
231
+ /**
232
+ * Set background color using paletted 8bit colors.
233
+ * https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit
234
+ * @param str text color to apply paletted 8bit background colors to
235
+ * @param color code
236
+ */
237
+ export declare function bgRgb8(str: string, color: number): string;
238
+ /**
239
+ * Set text color using 24bit rgb.
240
+ * `color` can be a number in range `0x000000` to `0xffffff` or
241
+ * an `Rgb`.
242
+ *
243
+ * To produce the color magenta:
244
+ *
245
+ * ```ts
246
+ * import { rgb24 } from "./colors.ts";
247
+ * rgb24("foo", 0xff00ff);
248
+ * rgb24("foo", {r: 255, g: 0, b: 255});
249
+ * ```
250
+ * @param str text color to apply 24bit rgb to
251
+ * @param color code
252
+ */
253
+ export declare function rgb24(str: string, color: number | Rgb): string;
254
+ /**
255
+ * Set background color using 24bit rgb.
256
+ * `color` can be a number in range `0x000000` to `0xffffff` or
257
+ * an `Rgb`.
258
+ *
259
+ * To produce the color magenta:
260
+ *
261
+ * ```ts
262
+ * import { bgRgb24 } from "./colors.ts";
263
+ * bgRgb24("foo", 0xff00ff);
264
+ * bgRgb24("foo", {r: 255, g: 0, b: 255});
265
+ * ```
266
+ * @param str text color to apply 24bit rgb to
267
+ * @param color code
268
+ */
269
+ export declare function bgRgb24(str: string, color: number | Rgb): string;
270
+ /**
271
+ * Remove ANSI escape codes from the string.
272
+ * @param string to remove ANSI escape codes from
273
+ */
274
+ export declare function stripColor(string: string): string;
275
+ //# sourceMappingURL=colors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/colors.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AED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAK9D;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAKhE;AAWD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEjD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hash.d.ts","sourceRoot":"","sources":["../../src/hash.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAWrD;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKrD"}
@@ -0,0 +1,202 @@
1
+ import { type BigString, type GetGuildWidgetImageQuery, type ImageFormat, type ImageSize, StickerFormatTypes } from '@discordeno/types';
2
+ /** Help format an image url. */
3
+ export declare function formatImageUrl(url: string, size?: ImageSize, format?: ImageFormat): string;
4
+ /**
5
+ * Get the url for an emoji.
6
+ *
7
+ * @param emojiId The id of the emoji
8
+ * @param animated Whether or not the emoji is animated
9
+ * @returns string
10
+ */
11
+ export declare function emojiUrl(emojiId: BigString, animated?: boolean): string;
12
+ /**
13
+ * Builds a URL to a user's avatar stored in the Discord CDN.
14
+ *
15
+ * @param userId - The ID of the user to get the avatar of.
16
+ * @param discriminator - The user's discriminator. (4-digit tag after the hashtag.)
17
+ * @param options - The parameters for the building of the URL.
18
+ * @returns The link to the resource.
19
+ */
20
+ export declare function avatarUrl(userId: BigString, discriminator: string, options?: {
21
+ avatar: BigString | undefined;
22
+ size?: ImageSize;
23
+ format?: ImageFormat;
24
+ }): string;
25
+ export declare function avatarDecorationUrl(avatarDecoration: BigString): string;
26
+ /**
27
+ * Builds a URL to a user's banner stored in the Discord CDN.
28
+ *
29
+ * @param userId - The ID of the user to get the banner of.
30
+ * @param options - The parameters for the building of the URL.
31
+ * @returns The link to the resource or `undefined` if no banner has not been set.
32
+ */
33
+ export declare function bannerUrl(userId: BigString, options?: {
34
+ banner?: BigString;
35
+ size?: ImageSize;
36
+ format?: ImageFormat;
37
+ }): string | undefined;
38
+ /**
39
+ * Builds a URL to the guild banner stored in the Discord CDN.
40
+ *
41
+ * @param guildId - The ID of the guild to get the link to the banner for.
42
+ * @param options - The parameters for the building of the URL.
43
+ * @returns The link to the resource or `undefined` if no banner has been set.
44
+ */
45
+ export declare function guildBannerUrl(guildId: BigString, options: {
46
+ banner?: BigString;
47
+ size?: ImageSize;
48
+ format?: ImageFormat;
49
+ }): string | undefined;
50
+ /**
51
+ * Builds a URL to the guild icon stored in the Discord CDN.
52
+ *
53
+ * @param guildId - The ID of the guild to get the link to the banner for.
54
+ * @param imageHash - The hash identifying the event cover image.
55
+ * @param options - The parameters for the building of the URL.
56
+ * @returns The link to the resource or `undefined` if no banner has been set.
57
+ */
58
+ export declare function guildIconUrl(guildId: BigString, imageHash: BigString | undefined, options?: {
59
+ size?: ImageSize;
60
+ format?: ImageFormat;
61
+ }): string | undefined;
62
+ /**
63
+ * Builds the URL to a guild splash stored in the Discord CDN.
64
+ *
65
+ * @param guildId - The ID of the guild to get the splash of.
66
+ * @param imageHash - The hash identifying the splash image.
67
+ * @param options - The parameters for the building of the URL.
68
+ * @returns The link to the resource or `undefined` if the guild does not have a splash image set.
69
+ */
70
+ export declare function guildSplashUrl(guildId: BigString, imageHash: BigString | undefined, options?: {
71
+ size?: ImageSize;
72
+ format?: ImageFormat;
73
+ }): string | undefined;
74
+ /**
75
+ * Builds the URL to a guild discovery splash stored in the Discord CDN.
76
+ *
77
+ * @param guildId - The ID of the guild to get the splash of.
78
+ * @param imageHash - The hash identifying the discovery splash image.
79
+ * @param options - The parameters for the building of the URL.
80
+ * @returns The link to the resource or `undefined` if the guild does not have a splash image set.
81
+ */
82
+ export declare function guildDiscoverySplashUrl(guildId: BigString, imageHash: BigString | undefined, options?: {
83
+ size?: ImageSize;
84
+ format?: ImageFormat;
85
+ }): string | undefined;
86
+ /**
87
+ * Builds the URL to a guild scheduled event cover stored in the Discord CDN.
88
+ *
89
+ * @param eventId - The ID of the scheduled event to get the cover of.
90
+ * @param options - The parameters for the building of the URL.
91
+ * @returns The link to the resource or `undefined`.
92
+ */
93
+ export declare function guildScheduledEventCoverUrl(eventId: BigString, options: {
94
+ cover?: BigString;
95
+ size?: ImageSize;
96
+ format?: ImageFormat;
97
+ }): string | undefined;
98
+ /**
99
+ * Builds a URL to the guild widget image stored in the Discord CDN.
100
+ *
101
+ * @param guildId - The ID of the guild to get the link to the widget image for.
102
+ * @param options - The parameters for the building of the URL.
103
+ * @returns The link to the resource.
104
+ */
105
+ export declare function getWidgetImageUrl(guildId: BigString, options?: GetGuildWidgetImageQuery): string;
106
+ /**
107
+ * Builds a URL to a member's avatar stored in the Discord CDN.
108
+ *
109
+ * @param guildId - The ID of the guild where the member is
110
+ * @param userId - The ID of the user to get the avatar of.
111
+ * @param options - The parameters for the building of the URL.
112
+ * @returns The link to the resource or `undefined` if no banner has been set.
113
+ */
114
+ export declare function memberAvatarUrl(guildId: BigString, userId: BigString, options?: {
115
+ avatar?: BigString;
116
+ size?: ImageSize;
117
+ format?: ImageFormat;
118
+ }): string | undefined;
119
+ /**
120
+ * Builds the URL to an application icon stored in the Discord CDN.
121
+ *
122
+ * @param applicationId - The ID of the application to get the icon of.
123
+ * @param iconHash - The hash identifying the application icon.
124
+ * @param options - The parameters for the building of the URL.
125
+ * @returns The link to the resource or `undefined`
126
+ */
127
+ export declare function applicationIconUrl(applicationId: BigString, iconHash: BigString | undefined, options?: {
128
+ size?: ImageSize;
129
+ format?: ImageFormat;
130
+ }): string | undefined;
131
+ /**
132
+ * Builds the URL to an application cover stored in the Discord CDN.
133
+ *
134
+ * @param applicationId - The ID of the application to get the cover of.
135
+ * @param coverHash - The hash identifying the application cover.
136
+ * @param options - The parameters for the building of the URL.
137
+ * @returns The link to the resource or `undefined`.
138
+ */
139
+ export declare function applicationCoverUrl(applicationId: BigString, coverHash: BigString | undefined, options?: {
140
+ size?: ImageSize;
141
+ format?: ImageFormat;
142
+ }): string | undefined;
143
+ /**
144
+ * Builds the URL to an application asset stored in the Discord CDN.
145
+ *
146
+ * @param applicationId - The ID of the application to get the asset of.
147
+ * @param assetId - The id identifying the application asset.
148
+ * @param options - The parameters for the building of the URL.
149
+ * @returns The link to the resource or `undefined`.
150
+ */
151
+ export declare function applicationAssetUrl(applicationId: BigString, assetId: BigString | undefined, options?: {
152
+ size?: ImageSize;
153
+ format?: ImageFormat;
154
+ }): string | undefined;
155
+ /**
156
+ * Builds the URL to a sticker pack banner stored in the Discord CDN.
157
+ *
158
+ * @param bannerAssetId - The ID of the banner asset for the sticker pack.
159
+ * @param options - The parameters for the building of the URL.
160
+ * @returns The link to the resource or `undefined`.
161
+ */
162
+ export declare function stickerPackBannerUrl(bannerAssetId: BigString | undefined, options?: {
163
+ size?: ImageSize;
164
+ format?: ImageFormat;
165
+ }): string | undefined;
166
+ /**
167
+ * Builds the URL to a sticker stored in the Discord CDN.
168
+ *
169
+ * @param stickerId - The ID of the sticker to get the icon of
170
+ * @param options - The parameters for the building of the URL.
171
+ * @returns The link to the resource or `undefined`.
172
+ */
173
+ export declare function stickerUrl(stickerId: BigString | number, options?: {
174
+ size?: ImageSize;
175
+ format?: ImageFormat;
176
+ type?: StickerFormatTypes;
177
+ }): string | undefined;
178
+ /**
179
+ * Builds the URL to a team icon stored in the Discord CDN.
180
+ *
181
+ * @param teamId - The ID of the team to get the icon of
182
+ * @param iconHash - The hash of the team icon.
183
+ * @param options - The parameters for the building of the URL.
184
+ * @returns The link to the resource or `undefined`.
185
+ */
186
+ export declare function teamIconUrl(teamId: BigString, iconHash: BigString | undefined, options?: {
187
+ size?: ImageSize;
188
+ format?: ImageFormat;
189
+ }): string | undefined;
190
+ /**
191
+ * Builds the URL to a role icon stored in the Discord CDN.
192
+ *
193
+ * @param roleId - The ID of the role to get the icon of
194
+ * @param iconHash - The hash of the role icon.
195
+ * @param options - The parameters for the building of the URL.
196
+ * @returns The link to the resource or `undefined`.
197
+ */
198
+ export declare function roleIconUrl(roleId: BigString, iconHash: BigString | undefined, options?: {
199
+ size?: ImageSize;
200
+ format?: ImageFormat;
201
+ }): string | undefined;
202
+ //# sourceMappingURL=images.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../../src/images.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,wBAAwB,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAGvI,gCAAgC;AAChC,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,SAAe,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,MAAM,CAE/F;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,UAAQ,GAAG,MAAM,CAErE;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CACvB,MAAM,EAAE,SAAS,EACjB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE;IACR,MAAM,EAAE,SAAS,GAAG,SAAS,CAAA;IAC7B,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,MAAM,CAAC,EAAE,WAAW,CAAA;CACrB,GACA,MAAM,CAQR;AAED,wBAAgB,mBAAmB,CAAC,gBAAgB,EAAE,SAAS,GAAG,MAAM,CAIvE;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CACvB,MAAM,EAAE,SAAS,EACjB,OAAO,CAAC,EAAE;IACR,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,MAAM,CAAC,EAAE,WAAW,CAAA;CACrB,GACA,MAAM,GA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