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