0.10.5 • Published 2 months ago

snowtransfer v0.10.5

Weekly downloads
16
License
MIT
Repository
github
Last release
2 months ago

A minimalistic rest client for the discord api


GitHub stars npm npm

Part of the WeatherStack

SnowTransfer is a small library specially made to only cover the REST/HTTP area of the discord api. It makes no assumptions about the rest of your stack, therefore you can use it anywhere as long as you use node 14 or higher.

Some of the things that make SnowTransfer awesome:

  • No requirement for other components
  • Full coverage of the discord rest api
  • Well documented
  • Supports both Bot and Bearer tokens (Bearer tokens will have much more limited access than Bot tokens)

General Usecase:

SnowTransfer is not your everyday library, especially compared to other libraries, it makes sense to use it when you:

  • 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
  • Only need a simple rest client that can be wrapped easily.

Microservice Bots:

I've written a general whitepaper on the idea of microservice bots, which you can find on gist: Microservice Bot Whitepaper

Documentation:

You can find the docs at https://daswolke.github.io/SnowTransfer/

Installation:

To install SnowTransfer, make sure that you have node 14 or higher and npm installed on your computer.

Then run the following command in a terminal npm install snowtransfer

Example:

const { SnowTransfer } = require('snowtransfer');
const client = new SnowTransfer('DISCORD BOT TOKEN');
const request = async () => {
	const message = await client.channel.createMessage('channel id', 'hi there');
	console.log(message);
};
request().then(() => {
	// message was sent to discord
}).catch(e => {
	// an error occurred
});
0.10.5

2 months ago

0.10.4

3 months ago

0.10.2

3 months ago

0.10.3

3 months ago

0.10.1

3 months ago

0.10.0

3 months ago

0.8.6

7 months ago

0.9.0

7 months ago

0.8.5

9 months ago

0.8.4

9 months ago

0.8.1

10 months ago

0.7.2

10 months ago

0.8.0

10 months ago

0.8.3

10 months ago

0.8.2

10 months ago

0.7.3

10 months ago

0.7.1

12 months ago

0.6.2

1 year ago

0.7.0

1 year ago

0.5.6

2 years ago

0.6.1

1 year ago

0.6.0

1 year ago

0.5.4

2 years ago

0.5.5

2 years ago

0.5.3

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.4.1

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.4.0

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.0

3 years ago

0.3.1

3 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago