improve
This commit is contained in:
@@ -148,9 +148,7 @@ function importChatHistory(steamID) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
steamUser.chat.getFriendMessageHistory(steamID.getSteamID64(), {
|
steamUser.chat.getFriendMessageHistory(steamID.getSteamID64(), (err, messages) => {
|
||||||
maxCount: 5
|
|
||||||
}, (err, messages) => {
|
|
||||||
if (err) {
|
if (err) {
|
||||||
logger.error("an error occurred while getting chat history: ", err);
|
logger.error("an error occurred while getting chat history: ", err);
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user