Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

F/new channel methods #65

Merged
merged 4 commits into from
Oct 16, 2017
Merged

Conversation

AshleyPoole
Copy link
Contributor

This PR adds the ability to:

  • Create channel
  • Join channel
  • Set channel purpose
  • Set channel topic
  • Archive channel

All new methods have accompanying tests using the format setup already in this repo.

This PR implements the feature request in issue (feature request) #11.

Methods for archive channel, join channel, create channel, set channel purpose and set channel topic.
Create, join, archive, set purpose and set topic for channels
@AshleyPoole
Copy link
Contributor Author

@Workshop2 ready for your review.

Copy link
Member

@Workshop2 Workshop2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, amazing work. A couple of bits of feedback.

/// Opens a DM channel to a user. Required to PM someone.
/// </summary>
Task<SlackChatHub> JoinDirectMessageChannel(string user);

/// <summary>
/// Creates a channel.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong XML comment

Task<SlackChatHub> JoinChannel(string channelName);

/// <summary>
/// Joins a channel.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And again


// when
var result = true;
try
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should let exceptions bubble up and be caught by the test harness

@AshleyPoole
Copy link
Contributor Author

@Workshop2 corrections made.

@Workshop2 Workshop2 merged commit 29ece92 into noobot:master Oct 16, 2017
@Workshop2
Copy link
Member

Thanks @AshleyPoole

Fantastic work

@AshleyPoole
Copy link
Contributor Author

Are you able to publish the nuget package for the latest version @Workshop2? I've checked nuget just but it's showing the old previous version.

@Workshop2
Copy link
Member

Done

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants