dh
discord.htc
npm i discord.htc
dh

discord.htc

A JavaScript Handler made for Discord utilizing its API

by CoroX

0.2.1 (see all)License:ISCTypeScript:Not FoundCategories:Vanilla JavaScript Discord API
npm i discord.htc
Readme

discord.htc logo

npm version david

Documentation

##How to install

You will need node.js 4+ to run the library

####NPM Install Command

npm install discord.htc

or saving to your package.json...

npm install --save discord.htc

###Ping Example

const DHTC = require('discord.htc')
var bot = new DHTC('bot token')
var prefix = '!'

bot.on('botReady', () => {
  console.log('Ready!')
})

bot.on('createdMessage', (message) => {
  if (message.content.startsWith(`${prefix}ping`)) {
    bot.makeMessage(message.channel_id, 'pong')
  }
})

bot.connect()

##Discord Server

https://discord.gg/hbKjYTu

##NPM Package

https://www.npmjs.com/package/discord.htc

Downloads/wk

3

GitHub Stars

0
No data available

LAST COMMIT

NaNyrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

0

OPEN PRs

0
No data available
VersionTagPublished
0.2.1
latest
6yrs ago
No tutorials found
Add a tutorial