Add ChannelPinsUpdate event

This commit is contained in:
Amish Shah
2016-08-28 18:50:50 +01:00
parent 309bc5da1f
commit a91fcd5cab
5 changed files with 42 additions and 19 deletions

View File

@@ -12,10 +12,6 @@ client.on('ready', () => {
console.log('ready!');
});
client.on('messageDeleteBulk', msgs => {
msgs.array().map(m => console.log(m.content));
});
client.on('message', message => {
if (true) {
if (message.content === 'makechann') {
@@ -109,20 +105,6 @@ function chanLoop(channel) {
channel.setName(channel.name + 'a').then(chanLoop).catch(console.log);
}
client.on('messageDelete', message => {
console.log('Message deleted by', message.author.username);
});
client.on('messageUpdate', (old, message) => {
if (message.author.username === 'hydrabolt')
console.log('Message updated from', old.content, 'to', message.content);
});
client.on('guildMemberSpeaking', (member, speaking) => {
const message = speaking ? `${member.user.username} is speaking` : `${member.user.username} is not speaking`;
member.guild.channels.get(member.guild.id).sendMessage(message);
});
client.on('message', msg => {
if (msg.content.startsWith('?raw')) {
msg.channel.sendMessage('```' + msg.content + '```');