Edited some features

Removed video editing from the ticket options
Set server description in ``` for partnerships
Added server invite link for partnerships
This commit is contained in:
Ninjdai 2022-12-28 00:15:49 +01:00
parent 87b1177bae
commit 79407fd100
3 changed files with 23 additions and 17 deletions

11
events/messageCreate.js Normal file
View File

@ -0,0 +1,11 @@
const { guildId } = require('../config.json');
module.exports = {
name: 'messageCreate',
async execute(message, client) {
if (message.guild.id != guildId) return;
if (message.author.id == "718456289704804392" && message.content.toLowerCase().replace(/\? /).endsWith("quoi")){
message.reply({ content: "feur"})
}
}
}

View File

@ -34,11 +34,6 @@ module.exports = {
value: 'ticket_profilepicture',
emoji: '🎆'
},
{
label: 'Video/Video',
value: 'ticket_video',
emoji: '🎞'
},
{
label: 'Overlay/Overlay',
value: 'ticket_overlay',

View File

@ -56,42 +56,42 @@ module.exports = {
},
{
name: "・Description・",
value: `${description}`,
value: `\`\`\`${description}\`\`\``,
inline: false
},
);
await channel.send({embeds:[commandtosendEMBED]}).then(msg => msg.pin());
if (invite.includes("discord.gg/")){
await interaction.client.fetchInvite(invite)
.then(async invite => {
.then(async Sinvite => {
const servinfoEMBED = new EmbedBuilder()
.setTitle(invite.guild.name)
.setTitle(Sinvite.guild.name)
.setFields([
{
name: "Créé :",
value : `<t:${Math.round(invite.guild.createdTimestamp/1000)}>`,
value : `<t:${Math.round(Sinvite.guild.createdTimestamp/1000)}>`,
},
{
name: "Membres :",
value : invite.memberCount.toString(),
value : Sinvite.memberCount.toString(),
},
{
name: "Description :",
value : invite.guild.description || "Aucune",
value : Sinvite.guild.description || "Aucune",
},
{
name: "ID :",
value : invite.guild.id.toString(),
value : Sinvite.guild.id.toString(),
},
{
name: "Nombre de boosts :",
value: invite.guild.premiumSubscriptionCount.toString()
value: Sinvite.guild.premiumSubscriptionCount.toString()
}
])
.setImage(invite.guild.bannerURL())
.setThumbnail(invite.guild.iconURL({ size: 1024 }))
if (invite.guild.partnered) servinfoEMBED.setDescription("<:Z_UtilePartner:962499238783242271>")
await channel.send( { embeds: [servinfoEMBED] } )
.setImage(Sinvite.guild.bannerURL())
.setThumbnail(Sinvite.guild.iconURL({ size: 1024 }))
if (Sinvite.guild.partnered) servinfoEMBED.setDescription("<:Z_UtilePartner:962499238783242271>")
await channel.send( { content: invite, embeds: [servinfoEMBED] } )
}).catch(error => {
console.error(error)
})