koishi-plugin-subscription 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -257,7 +257,7 @@ var SubscriptionService = class extends import_koishi.Service {
|
|
|
257
257
|
return `${channel.platform}:${channel.id}`;
|
|
258
258
|
}
|
|
259
259
|
registerCommands(ctx, config) {
|
|
260
|
-
const sub = ctx.command("subscription
|
|
260
|
+
const sub = ctx.command("subscription <app:string> [...accounts]", "添加订阅").alias("订阅").alias("添加订阅").userFields(["authority"]).action(async ({ session, options }, app, ...accounts) => {
|
|
261
261
|
if (!await this.authCheck(session, config)) {
|
|
262
262
|
return "权限不足";
|
|
263
263
|
}
|