mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 02:15:10 +02:00
Phone Book opt-in
This commit is contained in:
@@ -24,7 +24,7 @@ module.exports = class PhoneBookCommand extends Command {
|
||||
return channel.guild
|
||||
&& channel.topic
|
||||
&& channel.topic.includes('<xiao:phone>')
|
||||
&& !channel.topic.includes('<xiao:phone-book:hide>')
|
||||
&& channel.topic.includes('<xiao:phone-book>')
|
||||
&& (channel.guild.name.toLowerCase().includes(search) || channel.name.includes(search));
|
||||
});
|
||||
if (!channels.size) return msg.reply('Could not find any results.');
|
||||
|
||||
@@ -28,7 +28,7 @@ module.exports = class OptionsCommand extends Command {
|
||||
\`<xiao:phone:no-voicemail>\` Prevents this channel from recieving voicemails for missed calls.
|
||||
\`<xiao:phone:no-random>\` Makes the channel only able to be called directly, rather than picked randomly.
|
||||
\`<xiao:phone:block:INSERTIDHERE>\` Blocks a channel or server from contacting you via phone.
|
||||
\`<xiao:phone-book:hide>\` Hides this channel from \`phone-book\`.
|
||||
\`<xiao:phone-book>\` Shows this channel in \`phone-book\`.
|
||||
|
||||
__Portal Options__
|
||||
\`<xiao:portal>\` Marks the channel as a portal channel for \`portal-send\`.
|
||||
|
||||
Reference in New Issue
Block a user