SlackTaskClient is getting `method_deprecated` errors several API's
SlackTaskClient is getting method_deprecated errors several API's
- GetDirectMessageListAsync
- GetChannelListAsync
As I want to use the Task based client I'm not sure how to resolve these issues.
SlackTaskClient is getting
method_deprecatederrors several API's
- GetDirectMessageListAsync
- GetChannelListAsync
As I want to use the Task based client I'm not sure how to resolve these issues.
@ramonsmits try now from the latest, it should be fixed.
@ifonya105 Just tested GetDirectMessageListAsync and it still returns the same message.
Maybe the SlackTaskClient hasn't been updated yet?
Tested is with SlackClient which gives me the same result:
var client = new SlackTaskClient(Token);
var channels = await client.GetDirectMessageListAsync();
Ok, so GetDirectMessageListAsync should be removed I guess.
I got it to work by doing the following:
var client = new SlackTaskClient(Token);
var users = await client.GetUserListAsync();
var user = users.members.Single(x => x.name.Equals(name));
var response = await client.JoinDirectMessageChannelAsync(user.id);
channelId = response.channel.id;