mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 00:07:36 +02:00
Remove all adminCall stuff
This commit is contained in:
@@ -252,9 +252,8 @@ client.on('message', async msg => {
|
||||
if (!origin && !recipient) return;
|
||||
const call = origin || recipient;
|
||||
if (call.originDM && call.startUser.id !== msg.author.id) return;
|
||||
if (!call.adminCall && (msg.guild && (!msg.channel.topic || !msg.channel.topic.includes('<xiao:phone>')))) return;
|
||||
if (msg.guild && (!msg.channel.topic || !msg.channel.topic.includes('<xiao:phone>'))) return;
|
||||
if (!call.active) return;
|
||||
if (call.adminCall && msg.guild.id === call.origin.guild.id && !client.isOwner(msg.author)) return;
|
||||
try {
|
||||
await call.send(origin ? call.recipient : call.origin, msg, hasText, hasImage, hasEmbed);
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user