jamesmarcogliese / slack-api-csharp Goto Github PK
View Code? Open in Web Editor NEW.Net Implementation of Slack's WebAPI and EventAPI Wrapper - Generated from https://github.com/slackapi/slack-api-specs
License: MIT License
.Net Implementation of Slack's WebAPI and EventAPI Wrapper - Generated from https://github.com/slackapi/slack-api-specs
License: MIT License
When calling a List function, the class names are as follows:
ListOKResponseModel
ListOKResponseModelModel
ListOKResponseModelModelModel...
It carries on until there are nine "Model"s at the end.
Obviously not critical, but it would be better to have actual names corresponding to the action that returns them rather than something so arbitrary.
Block Kit is now the preferred method of building interactive/rich messages in Slack. It looks like the Slack API schema has been updated to include this - is it possible to regenerate the classes for this solution so that these latest updates get applied?
It looks like the only public property for RepliesOKResponse is Ok
-- for example, returned when calling
var resp = await slackWebAPI.Channels.RepliesAsync(token: token, threadTs: ts, channel: chan)
Unless I'm mistaken, according to the docs here, shouldn't there also be properties related to messages
and possibly has_more
?
I've verified this using the test for reactions.get:
{
"ok": false,
"error": "message_not_found"
}
When passing the timestamp
parameter as a double to a method in slack-api-csharp, for instance:
double ts = 1549470028.002800;
var resp = await slackWebAPI.Reactions.GetWithHttpMessagesAsync(token: token, channel: "the-channel", timestamp: ts);
you can see when debugging that the trailing zeroes in ts
are truncated and the method returns the same message_not_found
response as above.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.