2021-09-06 12:38:25 +02:00
const { MessageEmbed } = require ( "discord.js" ) ;
module . exports = {
name : "invite" ,
description : "Get bot invite link or get support" ,
category : "Utilities" ,
type : "CHAT_INPUT" ,
2021-11-18 18:56:42 +01:00
run : async ( client , interaction , args , utils ) => {
const embed = new MessageEmbed ( )
. setFooter ( ` Made by ${ client . author } ` , client . user . displayAvatarURL ( ) )
2021-09-06 12:38:25 +02:00
. setColor ( client . color )
. setTimestamp ( )
2023-04-18 11:47:47 +02:00
. setAuthor (
interaction . user . tag ,
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
)
. addField (
2021-11-18 18:56:42 +01:00
"<a:booster:896527475063025704> **Premium**" ,
"**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.**"
2021-09-06 12:38:25 +02:00
) ;
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
} ,
} ;