fix: 主人权限,消息撤回

This commit is contained in:
bietiaop 2024-08-20 15:06:57 +08:00
parent eacea6e902
commit 18f24f87bb
7 changed files with 107 additions and 35 deletions

View file

@ -1,6 +1,10 @@
import settings from '../../lib/settings.js';
export async function setDefaultDevice() {
if (!this.e.isMaster) {
this.reply('仅限主人设置', false, { at: true, recallMsg: 100 });
return false;
}
this.setContext('toSetDefaultDevice');
await this.reply(
`请发送默认设备信息,或者发送“取消”取消设置默认设备信息`,