Skip to content

SlackTaskClient is getting method_deprecated errors several API's #272

Description

@ramonsmits

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.

Activity

  1. ifonya105 commented on Mar 31, 2021

    @ifonya105

    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.

    @ramonsmits try now from the latest, it should be fixed.

  2. ramonsmits commented on Apr 27, 2021

    @ramonsmits
    Author

    @ifonya105 Just tested GetDirectMessageListAsync and it still returns the same message.

    Maybe the SlackTaskClient hasn't been updated yet?

  3. ramonsmits commented on Apr 28, 2021

    @ramonsmits
    Author

    Tested is with SlackClient which gives me the same result:

    var client = new SlackTaskClient(Token);
    var channels = await client.GetDirectMessageListAsync();
  4. ramonsmits commented on Apr 28, 2021

    @ramonsmits
    Author

    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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions