0.1.82 • Published 6 years ago

nitrocord v0.1.82

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

Nitrocord v0.1.78

Nitrocord is a JavaScript based discord API library designed to be the bridge between your applications and the Discord application.

Documentation

You can read through the Nitrocord documentation here (not ready yet)

Installation: NPM:

npm install nitrocord

Yarn:

yarn add nitrocord

NOTES: if something is scored through it has been made deprecated, ignore this unless you are using the version noted next to it or lower

Getting Started: To get started with Nitrocord, you first need to initiate the client:

const Nitro = require('nitrocord');
const client = new Nitro.Client()
/*you can put some options in the client call
using braces, some basic options to try include:
autoShard: The automatic sharding calculator
ignoreBots: should we allow events caused by robots to be thrown to you?
logging: what would you like the Nitrocord client to log (See the docs page)
*/

Logging In: To log in, you need to call the login() function.*

client.login("<Your-Token-Here>")

Subscribing to Events: To subscibe to an event, you must use the following function:

/*
	for events, the main ones to use will be:
	ready
	message
	guildCreate
	
	Event naming:
	All events follow the following pattern
	guildCreate
	guildBanAdd
	messageUpdate
	channelDelete
*/
client.on("Event Name", (data) => {
	//do something
})

Advisories

*If you have used the Nitrocord Config Creator tool and saved your token in there then you do not need to provide a token in the login function

Contact

you can contact me (the developer) through discord by sending a message in the Discord server

or alternatively, open an issue with the question tag

0.1.82

6 years ago

0.1.81

6 years ago

0.1.80

6 years ago

0.1.79

6 years ago

0.1.78

7 years ago

0.1.76

7 years ago

0.1.75

7 years ago

0.1.74

7 years ago

0.1.73

7 years ago

0.1.72

7 years ago

0.1.71

7 years ago

0.1.70

7 years ago

0.1.69

7 years ago

0.1.67

7 years ago

0.1.66

7 years ago

0.1.65

7 years ago

0.1.64

7 years ago

0.1.63

7 years ago

0.1.62

7 years ago

0.1.61

7 years ago

0.1.60

7 years ago

0.1.59

7 years ago

0.1.58

7 years ago

0.1.57

7 years ago

0.1.56

7 years ago

0.1.55

7 years ago

0.1.54

7 years ago

0.1.53

7 years ago

0.1.52

7 years ago

0.1.51

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

1.5.450

7 years ago

1.5.449

7 years ago

1.5.448

7 years ago

1.5.447

7 years ago

1.5.446

7 years ago

1.5.445

7 years ago

1.5.444

7 years ago

1.5.443

7 years ago

1.5.442

7 years ago

1.5.441

7 years ago

1.5.44

7 years ago

1.5.43

7 years ago

1.5.42

7 years ago

1.5.41

7 years ago

1.5.4

7 years ago

1.5.3

7 years ago

1.5.2

7 years ago

1.5.1

7 years ago

1.5.0

7 years ago

1.4.8

7 years ago

1.4.7

7 years ago

1.4.6

7 years ago

1.4.5

7 years ago

1.4.3

7 years ago

1.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago