channel overwrites

This commit is contained in:
Benjamin Kyd
2020-07-22 17:00:22 +01:00
parent d78b45c544
commit 802a578535
2 changed files with 18 additions and 7 deletions

View File

@@ -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});
});

View File

@@ -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)