Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

selfcore

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

selfcore

API wrapper for Discord user accounts

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Selfcore

Selfcore is a Discord API wrapper suitable for selfbots. It is designed to be minimal and easy to use, while being incredibly feature rich.

Installation

Use either NPM or yarn to install selfcore.

npm i selfcore

Usage

import selfcore from 'selfcore'

const client = new Selfcore(TOKEN)
const gateway = new Selfcore.Gateway(TOKEN)

# Sends a message to specified channel ID
client.sendMessage(channel_id, 'Hello World!')

# Sends a message to a specified webhook. It takes either a string or a WebHook object with embeds.
client.sendWebhook(URL, content)

# Logs messages in realtime
gateway.on('message', (m) => {
    console.log(m.content)
})

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

FAQs

Package last updated on 26 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc