Commit 09521ba5 authored by nanahira's avatar nanahira

attrs

parent 2d44e968
......@@ -27,7 +27,7 @@ export class OrderPickerConfig {
@DefineSchema({ description: '延迟 ms。', default: 0 })
delay: number;
isMatchingTarget(session: Session) {
fisMatchingTarget(session: Session) {
return (
session.content &&
session.guildId &&
......@@ -44,7 +44,7 @@ export class OrderPickerConfig {
return false;
}
const segments = session.elements;
if (!segments.find((s) => s.type === 'at' && s.data.type === 'all')) {
if (!segments.find((s) => s.type === 'at' && s.attrs.type === 'all')) {
return false;
}
return true;
......
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