Allow hiding channel name from portal-send

This commit is contained in:
Dragon Fire
2020-07-07 16:48:20 -04:00
parent 390919510c
commit 1d2ae54f2b
4 changed files with 6 additions and 1 deletions
+3
View File
@@ -51,6 +51,9 @@ module.exports = class PortalSendCommand extends Command {
**${this.portalEmoji} ${msg.author.tag} (${displayName}):** ${message}
${attachments || ''}
`);
if (channel.topic.includes('<xiao:portal:hide-name>')) {
return msg.say('Message sent to a server too terrified to show their name.');
}
return msg.say(`Message sent to **${channel.name}** in **${channel.guild.name}**!`);
} catch {
return msg.reply('Failed to send the message. Try again later!');
+1
View File
@@ -23,6 +23,7 @@ module.exports = class OptionsCommand extends Command {
\`<xiao:phone:no-voicemail>\` Prevents this channel from recieving voicemails for missed calls.
\`<xiao:phone-book:hide>\` Hides this channel from \`phone-book\`.
\`<xiao:portal>\` Marks the channel as a portal channel for \`portal-send\`.
\`<xiao:portal:hide-name>\` Hides the channel's name when the channel is chosen to recieve a portal message.
`);
}
};