@@ -74,7 +74,7 @@ module.exports = async (client, message) => {
74
74
return message . reply ( {
75
75
embeds : [ new Discord . MessageEmbed ( )
76
76
. setColor ( es . wrongcolor )
77
- . setFooter ( es . footertext , es . footericon )
77
+ . setFooter ( client . getFooter ( es ) )
78
78
. setTitle ( client . la [ ls ] . common . botchat . title )
79
79
. setDescription ( `${ client . la [ ls ] . common . botchat . description } \n> ${ botchannel . map ( c => `<#${ c } >` ) . join ( ", " ) } ` )
80
80
]
@@ -139,7 +139,7 @@ module.exports = async (client, message) => {
139
139
embeds : [
140
140
new Discord . MessageEmbed ( )
141
141
. setColor ( es . wrongcolor )
142
- . setFooter ( es . footertext , es . footericon )
142
+ . setFooter ( client . getFooter ( es ) )
143
143
. setTitle ( handlemsg ( client . la [ ls ] . common . unknowncmd . title , {
144
144
prefix : prefix
145
145
} ) )
@@ -196,7 +196,7 @@ module.exports = async (client, message) => {
196
196
message . reply ( {
197
197
embeds : [ new Discord . MessageEmbed ( )
198
198
. setColor ( es . wrongcolor )
199
- . setFooter ( es . footertext , es . footericon )
199
+ . setFooter ( client . getFooter ( es ) )
200
200
. setTitle ( client . la [ ls ] . common . permissions . title )
201
201
. setDescription ( `${ client . la [ ls ] . common . permissions . description } \n> \`${ command . memberpermissions . join ( "`, ``" ) } \`` ) ] }
202
202
) . then ( async msg => {
@@ -225,7 +225,7 @@ module.exports = async (client, message) => {
225
225
not_allowed = true ;
226
226
return message . reply ( { embeds : [ new MessageEmbed ( )
227
227
. setColor ( es . wrongcolor )
228
- . setFooter ( es . footertext , es . footericon )
228
+ . setFooter ( client . getFooter ( es ) )
229
229
. setTitle ( client . la [ ls ] . common . join_vc ) ] } ) . catch ( ( ) => { } )
230
230
}
231
231
if ( message . member . voice . selfDeaf || message . member . voice . deaf )
@@ -255,15 +255,15 @@ module.exports = async (client, message) => {
255
255
not_allowed = true ;
256
256
return message . reply ( { embeds : [ new MessageEmbed ( )
257
257
. setColor ( es . wrongcolor )
258
- . setFooter ( es . footertext , es . footericon )
258
+ . setFooter ( client . getFooter ( es ) )
259
259
. setTitle ( client . la [ ls ] . common . nothing_playing ) ] } ) . catch ( ( ) => { } )
260
260
}
261
261
if ( ! mechannel ) {
262
262
if ( player ) try { await player . destroy ( ) ; await delay ( 350 ) ; } catch { }
263
263
not_allowed = true ;
264
264
return message . reply ( { embeds : [ new MessageEmbed ( )
265
265
. setColor ( es . wrongcolor )
266
- . setFooter ( es . footertext , es . footericon )
266
+ . setFooter ( client . getFooter ( es ) )
267
267
. setTitle ( client . la [ ls ] . common . not_connected ) ] } ) . catch ( ( ) => { } )
268
268
}
269
269
if ( ! player . queue || ! player . queue . current ) {
@@ -279,15 +279,15 @@ module.exports = async (client, message) => {
279
279
not_allowed = true ;
280
280
return message . reply ( { embeds : [ new MessageEmbed ( )
281
281
. setColor ( es . wrongcolor )
282
- . setFooter ( es . footertext , es . footericon )
282
+ . setFooter ( client . getFooter ( es ) )
283
283
. setTitle ( client . la [ ls ] . common . nothing_playing ) ] } ) . catch ( ( ) => { } )
284
284
}
285
285
}
286
286
//if not in the same channel --> return
287
287
if ( player && channel . id !== player . voiceChannel && ! command . parameters . notsamechannel ) {
288
288
return message . reply ( { embeds : [ new MessageEmbed ( )
289
289
. setColor ( es . wrongcolor )
290
- . setFooter ( es . footertext , es . footericon )
290
+ . setFooter ( client . getFooter ( es ) )
291
291
. setTitle ( client . la [ ls ] . common . wrong_vc )
292
292
. setDescription ( `Channel: <#${ player . voiceChannel } > ` )
293
293
] } ) . catch ( ( ) => { } )
@@ -296,7 +296,7 @@ module.exports = async (client, message) => {
296
296
if ( mechannel && channel . id !== mechannel . id && ! command . parameters . notsamechannel ) {
297
297
return message . reply ( { embeds : [ new MessageEmbed ( )
298
298
. setColor ( es . wrongcolor )
299
- . setFooter ( es . footertext , es . footericon )
299
+ . setFooter ( client . getFooter ( es ) )
300
300
. setTitle ( client . la [ ls ] . common . wrong_vc )
301
301
. setDescription ( `Channel: <#${ mechannel . id } >` )
302
302
] } ) . catch ( ( ) => { } )
@@ -312,7 +312,7 @@ module.exports = async (client, message) => {
312
312
return message . reply ( { embeds : [
313
313
new Discord . MessageEmbed ( )
314
314
. setColor ( es . wrongcolor )
315
- . setFooter ( es . footertext , es . footericon )
315
+ . setFooter ( client . getFooter ( es ) )
316
316
. setTitle ( client . la [ ls ] . common . somethingwentwrong )
317
317
. setDescription ( `\`\`\`${ e . message ? e . message : e . stack ? String ( e . stack ) . grey . substr ( 0 , 2000 ) : String ( e ) . grey . substr ( 0 , 2000 ) } \`\`\`` )
318
318
] } ) . then ( async msg => {
@@ -324,7 +324,7 @@ module.exports = async (client, message) => {
324
324
message . reply ( {
325
325
embeds : [ new Discord . MessageEmbed ( )
326
326
. setColor ( es . wrongcolor )
327
- . setFooter ( es . footertext , es . footericon )
327
+ . setFooter ( client . getFooter ( es ) )
328
328
. setTitle ( handlemsg ( client . la [ ls ] . common . unknowncmd . title , {
329
329
prefix : prefix
330
330
} ) )
0 commit comments