diff --git a/src/discord.js b/src/discord.js index 899a37a..c092a35 100644 --- a/src/discord.js +++ b/src/discord.js @@ -30,7 +30,7 @@ module.exports.setup = async function() default: type = 3; break; } - this.bot.editStatus('online', {name: game, type: type});[] + this.bot.editStatus('online', {name: game, type: type}); }); diff --git a/src/discordevents.js b/src/discordevents.js index 0953e91..35079f8 100644 --- a/src/discordevents.js +++ b/src/discordevents.js @@ -214,14 +214,14 @@ async function ChannelUpdate(channel, oldchannel) || channel.topic != oldchannel.topic) { let embed = new DiscordEmbed({ - title: `Channel ${channel.name} Updated`, + title: `Text Channel ${oldchannel.name} Updated`, timestamp: new Date(), footer: { text: `ID: ${channel.id}` } }) // these include zws characters - embed.field('Before', '​', true); - embed.field('After', '​', true); + embed.field('​', '**Before**', true); + embed.field('​', '**After**', true); embed.field('​', '​', true); if (channel.name != oldchannel.name) @@ -243,12 +243,23 @@ async function ChannelUpdate(channel, oldchannel) embed.field('​', '​', true); } - embed.field('Channel', channel.mention, false); + embed.field('Channel', channel.mention, true); embed.colour('#328FA8'); embed.url('https://logori.xyz') - - Discord.bot.createMessage(FallbackChannel, {embed: embed.sendable}); + + Discord.bot.createMessage(FallbackChannel, { embed: embed.sendable }); + } + + if (channel.permissionOverwrites != oldchannel.permissionOverwrites) + { + channel.permissionOverwrites.forEach(e => console.log(e)); + + const oldperm = oldchannel.permissionOverwrites; + const newperm = channel.permissionOverwrites; + + + } } else if (Type == voice)