mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 13:56:25 +02:00
Show where the message goes
This commit is contained in:
@@ -35,7 +35,7 @@ module.exports = class PortalSendCommand extends Command {
|
|||||||
if (!channel) return msg.say('Aww... No channel has an open portal...');
|
if (!channel) return msg.say('Aww... No channel has an open portal...');
|
||||||
try {
|
try {
|
||||||
await channel.send(`**${msg.author.tag} (${msg.guild.name}):** ${message}`);
|
await channel.send(`**${msg.author.tag} (${msg.guild.name}):** ${message}`);
|
||||||
return msg.say('Message sent!');
|
return msg.say(`Message sent to **${channel.name}**!`);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return msg.say('Failed to send message...');
|
return msg.say('Failed to send message...');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user