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