mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 18:29:14 +02:00
Allow hiding channel name from portal-send
This commit is contained in:
@@ -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!');
|
||||
|
||||
@@ -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.
|
||||
`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user