1.0.1 • Published 3 years ago

mymod-api.js v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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");