Update voice and shard examples (#1608)

* Update voice.js

message.channel.sendMessage(...) to message.channel.send(...)

* Update shard.js

message.channel.sendMessage(...) to message.channel.send(...)

* Update voice.js

* Update shard.js

* Update voice.js
This commit is contained in:
Morgan (Fallen)
2017-06-24 23:20:29 +01:00
committed by Amish Shah
parent 1fadd0f859
commit e506995e4f
2 changed files with 4 additions and 4 deletions

View File

@@ -10,9 +10,9 @@ client.on('message', msg => {
if (msg.content.startsWith('?eval') && msg.author.id === '66564597481480192') {
try {
const com = eval(msg.content.split(' ').slice(1).join(' '));
msg.channel.sendMessage('```\n' + com + '```');
msg.channel.send(com, { code: true });
} catch (e) {
msg.channel.sendMessage('```\n' + e + '```');
msg.channel.send(e, { code: true });
}
}
});

View File

@@ -51,10 +51,10 @@ client.on('message', m => {
} else if (m.content.startsWith('#eval') && m.author.id === '66564597481480192') {
try {
const com = eval(m.content.split(' ').slice(1).join(' '));
m.channel.sendMessage(`\`\`\`\n${com}\`\`\``);
m.channel.send(com, { code: true });
} catch (e) {
console.log(e);
m.channel.sendMessage(`\`\`\`\n${e}\`\`\``);
m.channel.send(e, { code: true });
}
}
});