SplitScript.js
discordnpmgithub
  • 👋Welcome to SplitScript.js
  • 🍎core
    • root
    • cli
    • EventEmitter
    • Handling Errors
  • 🤖discord
    • getting started
    • create your first project
    • automod
    • bans
    • channels
    • commands
    • emojis
    • followups
    • types
  • 🌐https
    • usage
    • changelog
  • 🔗Links
    • Discord
    • NPM
    • GitHub
Powered by GitBook
On this page
  • install
  • listen for events
  • or login

Was this helpful?

Edit on GitHub
  1. discord

getting started

install

to install run this command

npm i '@splitscript.js/discord'

listen for events

to listen for events, use the discord.listen function

import discord from '@splitscript.js/discord'

discord.listen('TOKEN', {
    // It's recommended to set some intents so you can recieve more events
    intents: ['guild_messages', 'message_content']
})

or login

you can also just login if you only want to use APIs

import discord from '@splitscript.js/discord'

discord.login('TOKEN')
PreviousHandling ErrorsNextcreate your first project

Last updated 1 year ago

Was this helpful?

🤖