2022-10-26 12:38:28 +02:00
const { EmbedBuilder } = require ( "discord.js" ) ;
2021-09-06 12:38:25 +02:00
module . exports = {
name : "invite" ,
description : "Get bot invite link or get support" ,
category : "Utilities" ,
2022-10-26 12:38:28 +02:00
2021-11-18 18:56:42 +01:00
run : async ( client , interaction , args , utils ) => {
2022-10-26 12:38:28 +02:00
const embed = new EmbedBuilder ( )
. setFooter ( {
text : ` Made by ${ client . author } ` ,
2023-04-02 14:12:53 +02:00
iconURL : client . user . displayAvatarURL ( { dynamic : true } ) ,
2022-10-26 12:38:28 +02:00
} )
2021-09-06 12:38:25 +02:00
. setColor ( client . color )
. setTimestamp ( )
2022-03-02 19:37:05 +01:00
. setAuthor ( {
2023-04-02 14:12:53 +02:00
name : interaction . user . tag ,
2022-03-02 19:37:05 +01:00
iconURL : interaction . user . displayAvatarURL ( { dynamic : true } ) ,
} )
2021-09-06 12:38:25 +02:00
. setTitle ( ` Support/Invite ` )
2021-11-18 18:56:42 +01:00
. setThumbnail (
"https://github.com/night0721/cath.js/blob/master/util/assets/images/nyx_logo_transparent.webp"
2021-09-06 12:38:25 +02:00
)
2023-04-02 14:12:53 +02:00
. addFields ( [
{
name : "<a:booster:896527475063025704> **Premium**" ,
value :
"**You can either boost support server or subscribe to developer's team [Ko-Fi](https://ko-fi.com/cathteam) or gift a nitro to one of the developer team.**" ,
inline : true ,
} ,
] ) ;
2021-11-18 18:56:42 +01:00
interaction . followUp ( {
content : "Please click the buttons below for more information" ,
embeds : [ embed ] ,
components : utils . buttons ( client ) ,
} ) ;
2021-09-06 12:38:25 +02:00
} ,
} ;