Skip to content
This repository has been archived by the owner on Dec 4, 2022. It is now read-only.

Developers

DragonFire edited this page Sep 13, 2022 · 21 revisions

About plugins

You can code plugins on: NodeJS and JavaScript

About themes

You can code themes on: CSS, SCSS and CSS3

Folders

  • /plugins/your_plugin_name/main.js (For JavaScript plugins)
  • /dcord_node_plugins/your_node_plugin_name/main.js (For NodeJS plugins)
  • /themes/your_theme_name/main.css

API

❌ | Dragoncord API v1 is obsolete! Do not develop plugins until we have created the Dragoncord API v2.

README (WARNING)

The API is still incomplete and unstable

Get ready for bugs and many other problems

DragoncordAPI (Class)

Methods

injectCSS

DragoncordAPI.injectCSS(styleString: String);

Injecting CSS

setSplashTipTitle

DragoncordAPI.setSplashTipTitle(tipTitleString: String);

Set tip title

setSplashTip

DragoncordAPI.setSplashTip(tipString: String);

Set tip info

showNotification

DragoncordAPI.showNotification(html: string, removeAfter = 6000);

Show notification in-app

makeRequest

DragoncordAPI.makeRequest(method: string, url: string, isDownload = false);

Make request to web-server

loginByToken

DragoncordAPI.loginByToken(token: string);

Login to account by token

download

Method

DragoncordAPI.download(filename: string, text: string);

Download file

How it this works? + Example

DragoncordAPI.download("example.txt", "hello world!");

This example (^^^) downloads file with name example.txt and with content hello world!

getToken

DragoncordAPI.getToken();

Get account token (ATTENTION: DO NOT SHOW YOUR DISCORD TOKEN TO ANYONE, NOT EVEN YOUR FRIENDS)

changeStatus

changeStatus(token, status);

Change status (online, idle, dnd, invisible)

Example (with getToken):

var token = DragoncordAPI.getToken();

DragoncordAPI.changeStatus(token, "idle");

This example changes your status to "idle"

getModule(n);

Get Discord module

Can be used for plugin developers