make it better ig

This commit is contained in:
night0721 2022-02-02 04:01:05 +08:00
parent 1a3e93ddf9
commit 0d456c896b

View file

@ -114,31 +114,26 @@ client.on("messageCreate", async message => {
text: `Tactical Protection by ${client.author}`, text: `Tactical Protection by ${client.author}`,
icon_url: client.user.displayAvatarURL(), icon_url: client.user.displayAvatarURL(),
}); });
message.channel.send({
message embeds: [_],
.delete() });
.catch(() => {}) client.channels.cache.get("936986641585799178").send({
.then(() => { embeds: [
message.channel.send({ _.addFields(
embeds: [_], {
}); name: "Message",
client.channels.cache.get("936986641585799178").send({ value: message.content,
embeds: [ inline: false,
_.addFields( },
{ {
name: "Message", name: "Guild",
value: message.content, value: message.guild ? message.guild.name : "None",
inline: false, inline: true,
}, }
{ ),
name: "Guild", ],
value: message.guild ? message.guild.name : "None", });
inline: true, message.delete().catch(() => {});
}
),
],
});
});
} }
if ( if (