mymod-api.js

1.0.1 • Public • Published

MyMod.js

The official api wrapper for the MYMOD API

Installation

$ npm install @catcoderboii/my-mod

Importing

//Using ES6 Imports
import Client from "@catcoderboii/my-mod";

//Using nodejs require
const Client = require("@catcoderboii/my-mod");

Initialization

//After importing

//Create a new instance of the class "Client"
const client = new Client("authentication key");

Different Methods

  • ModLogs

Returns - Promise of object with properties guild and channel.

Parameter - GuildID: String

client.modlogs("guildid");
  • Prefix

Returns - Promise of object with properties guild and prefix or just prefix by default.

Parameter - GuildID: String

client.prefix("guildid");
  • MuteRole

Returns - Promise of object with properties guild and role.

Parameter - GuildID: String

client.muterole("guildid");

Package Sidebar

Install

npm i mymod-api.js

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

4.27 kB

Total Files

7

Last publish

Collaborators

  • catcoderboii