{"id":13466832,"url":"https://github.com/DasWolke/SnowTransfer","last_synced_at":"2025-03-26T00:31:32.693Z","repository":{"id":25987006,"uuid":"107035864","full_name":"DasWolke/SnowTransfer","owner":"DasWolke","description":"Minimalistic rest client for the discord api","archived":false,"fork":false,"pushed_at":"2025-03-03T04:43:12.000Z","size":737,"stargazers_count":62,"open_issues_count":1,"forks_count":18,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-03T04:58:43.580Z","etag":null,"topics":["api","discord","rest"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DasWolke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-15T18:00:13.000Z","updated_at":"2025-03-03T04:42:22.000Z","dependencies_parsed_at":"2024-01-25T15:27:42.767Z","dependency_job_id":"e371a9e4-8e87-4642-ac82-35e49b2f97e4","html_url":"https://github.com/DasWolke/SnowTransfer","commit_stats":{"total_commits":138,"total_committers":10,"mean_commits":13.8,"dds":"0.49275362318840576","last_synced_commit":"fedbc2f95fdb72a2923812f2cbb09b5dfd5093ef"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DasWolke%2FSnowTransfer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DasWolke%2FSnowTransfer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DasWolke%2FSnowTransfer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DasWolke%2FSnowTransfer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DasWolke","download_url":"https://codeload.github.com/DasWolke/SnowTransfer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245566098,"owners_count":20636390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","discord","rest"],"created_at":"2024-07-31T15:00:50.527Z","updated_at":"2025-03-26T00:31:32.682Z","avatar_url":"https://github.com/DasWolke.png","language":"TypeScript","funding_links":[],"categories":["API Libraries"],"sub_categories":[],"readme":"# A minimalistic rest client for the discord api\n\n---\n[![GitHub stars](https://img.shields.io/github/stars/DasWolke/SnowTransfer.svg)](https://github.com/DasWolke/SnowTransfer/stargazers) [![npm](https://img.shields.io/npm/dm/snowtransfer.svg)](https://www.npmjs.com/package/snowtransfer) [![npm](https://img.shields.io/npm/v/snowtransfer.svg)](https://www.npmjs.com/package/snowtransfer)\n\nPart of the WeatherStack\n\nSnowTransfer is a small library specially made to **only** cover the REST/HTTP area of the discord api.\nIt makes no assumptions about the rest of your stack, therefore you can use it anywhere as long as you use node 16.15.0 or higher.\n\n### Some of the things that make SnowTransfer awesome:\n- No requirement for other components\n- Full coverage of the discord rest api\n- Well documented\n- Supports both Bot and Bearer tokens (Bearer tokens will have much more limited access than Bot tokens)\n\n### General Usecase:\nSnowTransfer is not your everyday library,\nespecially compared to other libraries, it makes sense to use it when you:\n- Want to build a microservice based bot, where casual discord libraries would not be suitable since they assume the availability of other components like a gateway or a cache\n- Only need a simple rest client that can be wrapped easily.\n\n### Microservice Bots:\nI've written a general whitepaper on the idea of microservice bots, which you can find on gist: [Microservice Bot Whitepaper](https://gist.github.com/DasWolke/c9d7dfe6a78445011162a12abd32091d)\n\n### Documentation:\nYou can find the docs at [https://daswolke.github.io/SnowTransfer/](https://daswolke.github.io/SnowTransfer/)\n\n### Installation:\nTo install SnowTransfer, make sure that you have node 16.15.0 or higher and npm installed on your computer.\n\nThen run the following command in a terminal `npm install snowtransfer`\n\n## Example:\n```js\nconst { SnowTransfer } = require('snowtransfer');\nconst client = new SnowTransfer('DISCORD BOT TOKEN');\nconst request = async () =\u003e {\n\tconst message = await client.channel.createMessage('channel id', 'hi there');\n\tconsole.log(message);\n};\nrequest().then(() =\u003e {\n\t// message was sent to discord\n}).catch(e =\u003e {\n\t// an error occurred\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDasWolke%2FSnowTransfer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDasWolke%2FSnowTransfer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDasWolke%2FSnowTransfer/lists"}