mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
fix: 主人权限,消息撤回
This commit is contained in:
parent
eacea6e902
commit
18f24f87bb
7 changed files with 107 additions and 35 deletions
|
|
@ -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(
|
||||
`请发送默认设备信息,或者发送“取消”取消设置默认设备信息`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue