mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Add ChannelPinsUpdate event
This commit is contained in:
@@ -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 + '```');
|
||||
|
||||
Reference in New Issue
Block a user