Commit 974ce7ae authored by nanahira's avatar nanahira

fix

parent ab9e1509
......@@ -26,7 +26,6 @@ import { BlacklistReturn } from './types';
export * from './config';
@OnPlatform('onebot')
@OnGuild()
@DefinePlugin()
class ManageHandler extends StarterPlugin() {
@Inject()
......@@ -50,6 +49,7 @@ class ManageHandler extends StarterPlugin() {
@UseMiddleware(true)
async onGuildMessage(session: Session, next: Next) {
if (session.subtype !== 'group') return next();
const result = await this.handleAccount(session);
if (result.length) {
await session.bot.deleteMessage(session.channelId, session.messageId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment