Skip to content

Commit

Permalink
SlackApiClient.WithAccessToken maintains the value of DisableRetryOnR…
Browse files Browse the repository at this point in the history
…ateLimit

Resolves #155
  • Loading branch information
soxtoby committed May 28, 2023
1 parent ad60395 commit b39a7e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SlackNet/SlackApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ public SlackApiClient(IHttp http, ISlackUrlBuilder urlBuilder, SlackJsonSettings
_token = token;
}

public ISlackApiClient WithAccessToken(string accessToken) => new SlackApiClient(_http, _urlBuilder, _jsonSettings, accessToken);
public ISlackApiClient WithAccessToken(string accessToken) =>
new SlackApiClient(_http, _urlBuilder, _jsonSettings, accessToken) { DisableRetryOnRateLimit = DisableRetryOnRateLimit };

public IApiApi Api => new ApiApi(this);
public IAppsConnectionsApi AppsConnectionsApi => new AppsConnectionsApi(this);
Expand Down

0 comments on commit b39a7e7

Please sign in to comment.