Fix Message Sending and Support New Features. The library now supports

all the game streaming and URL stuff and is fixed for roles #328

src/client/websocket/packets/handlers/PresenceUpdate.js
This commit is contained in:
hydrabolt
2016-05-07 15:33:00 +01:00
parent bc443df11d
commit fb49ad7d93
6 changed files with 17 additions and 10 deletions

View File

@@ -77,6 +77,11 @@ client.on('message', message => {
}
}
if (message.content === 'myperms?') {
message.channel.sendMessage('Your permissions are:\n' +
JSON.stringify(message.channel.permissionsFor(message.author).serialize(), null, 4));
}
if (message.content === 'delchann') {
message.channel.delete().then(chan => console.log('selfDelChann', chan.name));
}