Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于扩展方法 #86

Open
HelloMitsuha opened this issue Jul 15, 2022 · 0 comments
Open

关于扩展方法 #86

HelloMitsuha opened this issue Jul 15, 2022 · 0 comments

Comments

@HelloMitsuha
Copy link

HelloMitsuha commented Jul 15, 2022

Is your feature request related to a problem? Please describe.
续上个Issues
因方法未支持而无法调用(更改权限)

function xxx(event)
  event.group:get(任意QQ号).isAdministrator=布尔值--使用简写,更改权限,不是输出权限
  --执行报错:attempt to index ? (a nil value)
end

print权限倒是可以用其他方法(引用了回复)

print(event.group:get(QQ).permission)

Describe the solution you'd like
支持这些扩展方法,以及尝试添加更多方法,实现更全面的操作
如果支持扩展方法或增加方法需要很长时间,我建议让bot和group对象有skey和pskey这些成员,来更方便操作

local body,data=Http.get("域名/api/xxx.php?skey="..event.bot..skey.."&pskey="..event.group.pskey)
--继续执行...

辛苦你了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant