parent
8d73a4275f
commit
23952c1eb1
|
@ -480,8 +480,12 @@ class PluginsLoader {
|
||||||
if (at === true) {
|
if (at === true) {
|
||||||
at = Number(e.user_id)
|
at = Number(e.user_id)
|
||||||
} else if (!isNaN(at)) {
|
} else if (!isNaN(at)) {
|
||||||
|
if (e.isGuild) {
|
||||||
|
text = e.sender?.nickname
|
||||||
|
} else {
|
||||||
let info = e.group.pickMember(at).info
|
let info = e.group.pickMember(at).info
|
||||||
text = info?.card ?? info?.nickname
|
text = info?.card ?? info?.nickname
|
||||||
|
}
|
||||||
text = lodash.truncate(text, { length: 10 })
|
text = lodash.truncate(text, { length: 10 })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue