-
Notifications
You must be signed in to change notification settings - Fork 657
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
2.0.0 getDMByName don't exist anymore #126
Comments
Looking at the old implementation now |
Ok, so the old function did this:
So, as far as I can tell, this function didn't create a new DM when you call it. Can you explain a bit more by what you mean by it creating and updating in the client? |
The commit above adds getDMByName back in. I'm not certain what you're asking on the other part though, so will wait to hear back before I close this issue. |
@l12s I guess you are right. This is what the method di. Thanks for recreating it |
Hey, guys
Testing the beta version, I realized the the client does not have the method getDMByName(). I also checked that the dataStore can provide the already loaded DMs by ID.
The thing is, I don't have the DM id, only the user's slack_id. Of course I can get the hash and iterate looking for the user's name, but would be interesting if this was encapsulated in the client.
But the most important thing is: with my experience in the last slack client version, when the DM do not exist yet, when we call it for the first time, it is created at slack and updated in the client (right?). This way now it seems like once loaded it is static and do not update itself.
Can you advise on this?
The text was updated successfully, but these errors were encountered: