mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
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:
committed by
Amish Shah
parent
1fadd0f859
commit
e506995e4f
@@ -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 });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user