You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is my working code in C# that passes in a slackToken that I have defined in my environment variables. It is used to connect to the SlackTaskClient just like shown here (https://github.com/Inumedia/SlackAPI/wiki/Examples) and it is returning the response invalid_arguments in the response message. Perplexed as to why this is happening with a newly created OAuth token and the app has been added to the channel.
private static async Task<PostMessageResponse> PostToSlack(string slackToken)
{
var slackClient = new SlackTaskClient(slackToken);
var response = await slackClient.PostMessageAsync("#general", "test");
return response;
}
The text was updated successfully, but these errors were encountered:
We diagnosed the the problem you are sending as_user = false as part of the payload without using a guard statement so it always send and that is a deprecated argument.
Add a guard statement in your TaskClient for that check and it should be good to go again.
As for now we just created a basic HTTP client and are sending it manually using JSON but the SDK would be nice to use.
This is my working code in C# that passes in a slackToken that I have defined in my environment variables. It is used to connect to the SlackTaskClient just like shown here (https://github.com/Inumedia/SlackAPI/wiki/Examples) and it is returning the response invalid_arguments in the response message. Perplexed as to why this is happening with a newly created OAuth token and the app has been added to the channel.
The text was updated successfully, but these errors were encountered: