Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/structures/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,9 @@ class Client extends EventEmitter {
* @returns {Promise<void>}
*/
async logout () {
await this.ig.account.logout()
await this.ig.account.logout();
await this.ig.realtime.disconnect();
await this.ig.fbns.disconnect();
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/structures/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class Message {
}
} else {
this.storyShareData = {
author: this.client._patchOrCreateUser(data.story_share.media.user.pk, data.story_share.media.user),
author: this.client._patchOrCreateUser(data.story_share.media?.user.pk, data.story_share.media?.user),
sourceURL: data.story_share.media.image_versions2.candidates[0].url
}
}
Expand Down Expand Up @@ -211,7 +211,7 @@ class Message {
* @returns {Promise<Message>}
*/
reply (content) {
return this.chat.sendMessage(`${this.client.options.disableReplyPrefix ? '' : `${this.author.username}, `}${content}`)
return this.chat.sendMessage(`${this.client.options.disableReplyPrefix ? '' : `@${this.author.username}, `}${content}`)
}

toString () {
Expand Down