fix: replace getMemberMap with gml

This commit is contained in:
ikechan8370 2024-02-28 16:36:25 +08:00
parent 3709166b2d
commit cf7da0d2c5
2 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,7 @@ export async function getChatHistoryGroup (e, num) {
}
chats = chats.slice(0, num)
try {
let mm = await e.group.getMemberMap()
let mm = await e.bot.gml
for (const chat of chats) {
if (e.adapter === 'shamrock') {
if (chat.sender?.user_id === 0) {