@widgetbot/crate
TypeScript icon, indicating that this package has built-in type declarations

3.7.0 • Public • Published

Crate

npm version Docs JSDelivr

Clean & powerful popup Discord widgets for your website.

Demo

Usage

See the documentation for more options.

<script src="https://cdn.jsdelivr.net/npm/@widgetbot/crate@3" async>
  const crate = new Crate({
    server: '299881420891881473',
    channel: '355719584830980096'
  })

  crate.notify('Test notification')
  crate.on('signIn', data => {
    console.log(`Guest signed in as ${data.name}`)
    crate.emit('sendMessage', 'Hello world')
  })
</script>

Readme

Keywords

none

Package Sidebar

Install

npm i @widgetbot/crate

Weekly Downloads

686

Version

3.7.0

License

SEE LICENSE IN LICENSE.md

Unpacked Size

1.98 MB

Total Files

142

Last publish

Collaborators

  • gm1003
  • johnythecarrot
  • victiondev
  • daave
  • advaithj