Browse Source

Hard code guild ID

master
Abheek Dhawan 4 years ago
parent
commit
996e1d63b1
  1. 8
      index.js

8
index.js

@ -26,7 +26,7 @@ client.on('messageDelete', message => {
.setFooter("ID: " + message.id)
.setTimestamp()
.setColor('ff0000');
message.guild.channels.cache.get("826876551756513314").send(deleteEmbed).catch(console.error);
client.guilds.get("826506878976000030").channels.cache.get("826876551756513314").send(deleteEmbed).catch(console.error);
});
client.on('messageUpdate', (originalMessage, editedMessage) => {
@ -41,10 +41,11 @@ client.on('messageUpdate', (originalMessage, editedMessage) => {
.setFooter("ID: " + editedMessage.id)
.setTimestamp()
.setColor('006699');
editedMessage.guild.channels.cache.get("826876551756513314").send(editEmbed).catch(console.error);
client.guilds.get("826506878976000030").channels.cache.get("826876551756513314").send(editEmbed).catch(console.error);
});
client.on('channelCreate', channel => {
if (channel.guild.id = "826506878976000030") {
const channelCreateEmbed = new Discord.MessageEmbed()
.setTitle("Channel Created #️⃣")
.addField("Name", channel.name)
@ -52,7 +53,8 @@ client.on('channelCreate', channel => {
.setFooter("ID: " + channel.id)
.setTimestamp()
.setColor('006699');
channel.guild.channels.cache.get("826876551756513314").send(channelCreateEmbed).catch(console.error);
client.guilds.get("826506878976000030").channels.cache.get("826876551756513314").send(channelCreateEmbed).catch(console.error);
}
});
client.login(process.env.BOT_TOKEN);

Loading…
Cancel
Save