deno-slack-api
deno-slack-api copied to clipboard
Slack API Client for Deno Run on Slack projects
**Description of the problem being solved** Please add types to the client. Seems like all but a very few of the `SlackAPIClient` methods are untyped. This makes the DX very...
**Question** How does one use `files.upload`? I tried ```typescript import { Readable } from "node:stream"; // ... // This is a `ReadableStream`... const audio = (await fetch("https://upload.wikimedia.org/wikipedia/commons/7/71/George_Gershwin_2.ogg")).body!; const response =...
### Summary - Implement the fileUploadV2 method, which allows for the uploading of multiple files. - Implement the [files.getUploadURLExternal](https://api.slack.com/methods/files.getUploadURLExternal) method. - Implement the [files.completeUploadExternal](https://api.slack.com/methods/files.completeUploadExternal) method. ### testing If you want...
See https://slack.dev/node-slack-sdk/web-api#upload-a-file for docs on how this method works from a user perspective. Here is the code from the node-slack-sdk for this method: https://github.com/slackapi/node-slack-sdk/blob/main/packages/web-api/src/file-upload.ts @seratch has example code for deno-slack-sdk-based...
I'd like to have the block types exposed just like the NPM module: For example with the nodejs module: ```js import type { ContextBlock, DividerBlock, HeaderBlock, SectionBlock, } from 'npm:@slack/[email protected]'...
I have a workflow that runs daily, haven't made changes to it for some time. Got this error today. Maybe a hiccup on the backend? ``` 2023-11-13 08:00:50 [info] [Fn060X3USBNZ]...
Need to reproduce as a first step! But, as reported in a feedback session by a community developer, with the following datastore: ``` export const OldestCodeReviewDatastore = DefineDatastore({ name: 'code_review_datastore',...
- Tweaks CI to run against most recent stable deno as well as a minimum deno version (1.31.1 - based on what version of deno we Run on Slack) -...
### Description Currently the base [BaseSlackClient](https://github.com/slackapi/deno-slack-api/blob/main/src/types.ts#L38) defines the return type of `apiCall` and `response` as `Promise` which represents the `json payload` returned by the Slack API. This is an issue...
### Summary This PR includes the necessary import update to publish to JSR ### Special notes Let's discuss in Slack. ### Requirements * [x] I've read and understood the [Contributing...