3.2.2 • Published 1 year ago

@splitscript.js/discord v3.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

npm.io

Package for making discord bots

install size downloads

About

This package is part of SplitScript.js, the everything framework

It is used for building discord bots

Install

$ npm i @splitscript.js/discord

Usage

Listen for events

This authenticates the discord APIs and listens for events from the gateway

import discord from '@splitscript.js/discord'

discord.listen('TOKEN', {
	// Intents get calculated automatically
	intents: ['guild_messages', 'message_content', 'other_intent']
})

Authenticate API requests

You can also use .login if you don't want to listen for events, but just want to use the apis

discord.login('TOKEN')

Use the APIs

Most discord APIs should be supported. You can use them like this:

await discord.channels.list('A_GUILD_ID')

For a full list of APIs, go to the docs

NPM Version by ultraviolet

3.2.2

1 year ago

3.1.3

2 years ago

3.1.2

2 years ago

3.2.0

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago