mirror of
https://github.com/pieartsy/PluralFlux.git
synced 2026-04-16 17:45:28 +10:00
updated imports and docstrings
This commit is contained in:
@@ -1,21 +1,24 @@
|
|||||||
import { db } from '../sequelize.js';
|
import {db} from '../db.js';
|
||||||
import {enums} from "../enums.js";
|
import {enums} from "../enums.js";
|
||||||
import {loadImage} from "canvas";
|
import {loadImage} from "canvas";
|
||||||
import {EmptyResultError} from "sequelize";
|
import {EmptyResultError} from "sequelize";
|
||||||
import {EmbedBuilder, User} from "@fluxerjs/core";
|
import {EmbedBuilder} from "@fluxerjs/core";
|
||||||
|
|
||||||
const mh = {};
|
const mh = {};
|
||||||
|
|
||||||
// Has an empty "command" to parse the help message properly
|
// Has an empty "command" to parse the help message properly
|
||||||
const commandList = ['--help', 'add', 'remove', 'name', 'listall', 'displayName', 'proxy', 'propic', ''];
|
const commandList = ['--help', 'add', 'remove', 'name', 'list', 'displayName', 'proxy', 'propic', ''];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parses through the subcommands that come after "pf;member" and calls functions accordingly.
|
* Parses through the subcommands that come after "pf;member" and calls functions accordingly.
|
||||||
*
|
*
|
||||||
* @param {User} author - The id of the message author
|
* @async
|
||||||
|
* @param {string} authorId - The id of the message author
|
||||||
|
* @param {string} authorFull - The username and discriminator of the message author
|
||||||
* @param {string[]} args - The message arguments
|
* @param {string[]} args - The message arguments
|
||||||
* @param {string | null} attachmentUrl - The message attachment url.
|
* @param {string | null} attachmentUrl - The message attachment url.
|
||||||
* @returns {Promise<string> | Promise <EmbedBuilder>} A message, or an informational embed.
|
* @returns {Promise<string> | Promise <EmbedBuilder>} A message, or an informational embed.
|
||||||
|
* @throws {Error}
|
||||||
*/
|
*/
|
||||||
mh.parseMemberCommand = async function(authorId, authorFull, args, attachmentUrl){
|
mh.parseMemberCommand = async function(authorId, authorFull, args, attachmentUrl){
|
||||||
let member;
|
let member;
|
||||||
|
|||||||
Reference in New Issue
Block a user