8000 GitHub - leonllrmc/DiscordDB_JS
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

leonllrmc/DiscordDB_JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DiscordDB_JS

A portage from DiscordDB for javascript (but with more things...)

Installation

To install current latest release you can use followings commands:

npm install discord_db_js
#or
npm i discord_db_js

Basic Documentation

  new Discord_DB(channel /*channel object or channel Id*/, client /*Discord.js client*/)
  new Discord_DB_fromMessage(message/*message object or message Id*/,channel /*channel object or channel Id*/, client /*Discord.js client*/)
  
  DB.getContent().then(content).catch(err)

  DB.setContent(newContent/*JSON or Object*/).then().catch(err)

###Breaking changes you now have to use

const {Discord_DB, Discord_DB_fromMessage} = require('discord_db_js')

instead of

const Discord_DB = require('discord_db_js')

and now Discord_DB constructor no longer take a guild argument but only a channel argument and client argument

Requirements

  • discord.js

this code is under the GPL 3.0 License