From 5aee01b480ee2a3fb0581dec20e890ac2f1743d7 Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Mon, 27 Apr 2020 10:40:43 -0700 Subject: add support and embed cmd, v8.0.2 also change msg.channel.send to msg.say --- src/commands/bot/uptime.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/commands/bot/uptime.ts') diff --git a/src/commands/bot/uptime.ts b/src/commands/bot/uptime.ts index 3280d9e..9128ab7 100644 --- a/src/commands/bot/uptime.ts +++ b/src/commands/bot/uptime.ts @@ -26,14 +26,14 @@ export default class UptimeBot extends Command { } run(msg: CommandoMessage) { const duration = _duration(this.client.uptime).format(" D [days], H [hrs], m [mins], s [secs]"); - msg.channel.send('Please wait...').then(m => { + msg.say('Please wait...').then(m => { m.edit(`** **`); let emb = new MessageEmbed() .setDescription('<@699473263998271489> has been up for ' + duration + '. ' + emoji.random()) .setColor(0xFFCC4D) - msg.channel.send(emb); + msg.say(emb); }); } } \ No newline at end of file -- cgit v1.2.3