mirror of
https://github.com/Art-Portal/April.git
synced 2024-12-27 03:44:19 +01:00
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:
parent
87b1177bae
commit
79407fd100
11
events/messageCreate.js
Normal file
11
events/messageCreate.js
Normal 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"})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -34,11 +34,6 @@ module.exports = {
|
|||||||
value: 'ticket_profilepicture',
|
value: 'ticket_profilepicture',
|
||||||
emoji: '🎆'
|
emoji: '🎆'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: 'Video/Video',
|
|
||||||
value: 'ticket_video',
|
|
||||||
emoji: '🎞'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: 'Overlay/Overlay',
|
label: 'Overlay/Overlay',
|
||||||
value: 'ticket_overlay',
|
value: 'ticket_overlay',
|
||||||
|
@ -56,42 +56,42 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "・Description・",
|
name: "・Description・",
|
||||||
value: `${description}`,
|
value: `\`\`\`${description}\`\`\``,
|
||||||
inline: false
|
inline: false
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
await channel.send({embeds:[commandtosendEMBED]}).then(msg => msg.pin());
|
await channel.send({embeds:[commandtosendEMBED]}).then(msg => msg.pin());
|
||||||
if (invite.includes("discord.gg/")){
|
if (invite.includes("discord.gg/")){
|
||||||
await interaction.client.fetchInvite(invite)
|
await interaction.client.fetchInvite(invite)
|
||||||
.then(async invite => {
|
.then(async Sinvite => {
|
||||||
const servinfoEMBED = new EmbedBuilder()
|
const servinfoEMBED = new EmbedBuilder()
|
||||||
.setTitle(invite.guild.name)
|
.setTitle(Sinvite.guild.name)
|
||||||
.setFields([
|
.setFields([
|
||||||
{
|
{
|
||||||
name: "Créé :",
|
name: "Créé :",
|
||||||
value : `<t:${Math.round(invite.guild.createdTimestamp/1000)}>`,
|
value : `<t:${Math.round(Sinvite.guild.createdTimestamp/1000)}>`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Membres :",
|
name: "Membres :",
|
||||||
value : invite.memberCount.toString(),
|
value : Sinvite.memberCount.toString(),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Description :",
|
name: "Description :",
|
||||||
value : invite.guild.description || "Aucune",
|
value : Sinvite.guild.description || "Aucune",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "ID :",
|
name: "ID :",
|
||||||
value : invite.guild.id.toString(),
|
value : Sinvite.guild.id.toString(),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Nombre de boosts :",
|
name: "Nombre de boosts :",
|
||||||
value: invite.guild.premiumSubscriptionCount.toString()
|
value: Sinvite.guild.premiumSubscriptionCount.toString()
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
.setImage(invite.guild.bannerURL())
|
.setImage(Sinvite.guild.bannerURL())
|
||||||
.setThumbnail(invite.guild.iconURL({ size: 1024 }))
|
.setThumbnail(Sinvite.guild.iconURL({ size: 1024 }))
|
||||||
if (invite.guild.partnered) servinfoEMBED.setDescription("<:Z_UtilePartner:962499238783242271>")
|
if (Sinvite.guild.partnered) servinfoEMBED.setDescription("<:Z_UtilePartner:962499238783242271>")
|
||||||
await channel.send( { embeds: [servinfoEMBED] } )
|
await channel.send( { content: invite, embeds: [servinfoEMBED] } )
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user