在我的不和谐频道中,我执行.serverinfo,即使我拥有以下代码,它也不会响应我:
let lowerBound = nodesSortedByY.firstIndex(where: { $0 <= 4.0 }) ?? nodesSortedByY.startIndex
let upperBound = nodesSortedByY.lastIndex(where: { $0 >= 2.0 }) ?? nodesSortedByY.endIndex
let sub = nodesSortedByY[lowerBound...upperBound]
有人知道为什么吗?
答案 0 :(得分:1)
@bot.command()
您需要在此处定义名称
@bot.command(name='serverinfo')