@@ -25,8 +25,8 @@ const Invite = require('../structures/Invite');
25
25
* Resolves the string to a code based on the passed regex.
26
26
* @param {string } data The string to resolve
27
27
* @param {RegExp } regex The RegExp used to extract the code
28
- * @private
29
28
* @returns {string }
29
+ * @private
30
30
*/
31
31
function resolveCode ( data , regex ) {
32
32
return regex . exec ( data ) ?. [ 1 ] ?? data ;
@@ -35,8 +35,8 @@ function resolveCode(data, regex) {
35
35
/**
36
36
* Resolves InviteResolvable to an invite code.
37
37
* @param {InviteResolvable } data The invite resolvable to resolve
38
- * @private
39
38
* @returns {string }
39
+ * @private
40
40
*/
41
41
function resolveInviteCode ( data ) {
42
42
return resolveCode ( data , Invite . InvitesPattern ) ;
@@ -45,8 +45,8 @@ function resolveInviteCode(data) {
45
45
/**
46
46
* Resolves GuildTemplateResolvable to a template code.
47
47
* @param {GuildTemplateResolvable } data The template resolvable to resolve
48
- * @private
49
48
* @returns {string }
49
+ * @private
50
50
*/
51
51
function resolveGuildTemplateCode ( data ) {
52
52
const GuildTemplate = require ( '../structures/GuildTemplate' ) ;
@@ -77,8 +77,8 @@ function resolveGuildTemplateCode(data) {
77
77
/**
78
78
* Resolves a BufferResolvable to a Buffer.
79
79
* @param {BufferResolvable|Stream } resource The buffer or stream resolvable to resolve
80
- * @private
81
80
* @returns {Promise<ResolvedFile> }
81
+ * @private
82
82
*/
83
83
async function resolveFile ( resource ) {
84
84
if ( Buffer . isBuffer ( resource ) ) return { data : resource } ;
@@ -115,8 +115,8 @@ async function resolveFile(resource) {
115
115
/**
116
116
* Resolves a Base64Resolvable to a Base 64 image.
117
117
* @param {Base64Resolvable } data The base 64 resolvable you want to resolve
118
- * @private
119
118
* @returns {?string }
119
+ * @private
120
120
*/
121
121
function resolveBase64 ( data ) {
122
122
if ( Buffer . isBuffer ( data ) ) return `data:image/jpg;base64,${ data . toString ( 'base64' ) } ` ;
@@ -126,8 +126,8 @@ function resolveBase64(data) {
126
126
/**
127
127
* Resolves a Base64Resolvable, a string, or a BufferResolvable to a Base 64 image.
128
128
* @param {BufferResolvable|Base64Resolvable } image The image to be resolved
129
- * @private
130
129
* @returns {Promise<?string> }
130
+ * @private
131
131
*/
132
132
async function resolveImage ( image ) {
133
133
if ( ! image ) return null ;
0 commit comments