Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing property and improvement suggestions #15

Closed
16 of 19 tasks
Mr-KayJayDee opened this issue Aug 27, 2020 · 1 comment
Closed
16 of 19 tasks

Missing property and improvement suggestions #15

Mr-KayJayDee opened this issue Aug 27, 2020 · 1 comment
Labels
bug Something isn't working enhancement New feature or request

Comments

@Mr-KayJayDee
Copy link

Mr-KayJayDee commented Aug 27, 2020

Missing property:

  • message.author.followerCount
  • message.author.biography
  • message.author.followingCount
  • message.author.isBusiness
  • message.author.mediaCount
  • message.author.totalIgtvVideos

Improvement:

  • When a user like a message the messageCreate event is emitted, maybe a messageLikeAdd (and messageLikeRemove) or smth else should be good.

Things that summons errors:

  • When an user sends an file the message property is undefined
  • When an user answer a story the message property is undefined
  • When a call is started it shows a message in a chat and this message is undefined
  • When the group name is edited it shows a message in a chat and this message is undefined
  • When a heart (default instagram heart) or a sticker is received the message property is undefined
  • When an user send a voice message the message property is undefined

Feature ideas:

  • userAdded (a user has been added to the group)
  • userRemoved (a user has been removed from the group, maybe we can know if he was kicked or just has left)
  • groupUserOpped (a user has been given the admin permissions)
  • groupChatEnded (a group chat has been ended)
  • groupChatCreated (a group chat has been created, this will maybe emit a userAdded event)
  • groupNameUpdate (the group name has been changed)

Maybe i will edit it if i have new suggestions.

@Androz2091 Androz2091 added enhancement New feature or request bug Something isn't working labels Aug 27, 2020
@Androz2091
Copy link
Owner

Missing property:

message.author.followerCount
message.author.biography
message.author.followingCount
message.author.isBusiness
message.author.mediaCount
message.author.totalIgtvVideos

These properties can now be retrieved using something like:

client.on('messageCreate', async (message) => {

    // fetch the user if it hasn't already be done 
    if (!message.author.followerCount) await message.author.fetch();

});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants