Skip to content

某些方法无法调用 #9

@HelloMitsuha

Description

@HelloMitsuha

Describe the bug
以下均为java.lang.reflect.InvocationTargetException异常
执行已存在的方法出错

event.group:setName("测试")--修改群名称?

在执行下面的代码时出现异常

local mb=event.group:get(tonumber(任意在群里的QQ号))--转换成Member以执行
event.group:sendMessage("尝试执行中...")
local time=60*60*60*24*29--简易计算

mb:mute(time)--禁言(异常处)

To Reproduce
Steps to reproduce the behavior:
对任意Member调用方法mute即可,而且不局限于禁言,部分方法都会出现此异常(比如代码中出现但未在文档中出现的Group:setName(String)也无法调用)

Expected behavior
出现java.lang.reflect.InvocationTargetException错误,无法执行

Screenshots
image
image
image
image
image

Desktop (please complete the following information):

  • OS: null
  • Browser null
  • Version null

Smartphone (please complete the following information):

  • Device: Android
  • OS: Android 9
  • Browser via
  • Version 1.0-alpha5

Additional context
为什么存在的方法也无法调用啊?
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions