From 83a2497ff4a8cefefeb8bc92af66bf0d91c01422 Mon Sep 17 00:00:00 2001 From: Aster Fialla Date: Sat, 14 Feb 2026 21:10:39 -0500 Subject: [PATCH] updated imports and docstrings --- src/helpers/memberHelper.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/helpers/memberHelper.js b/src/helpers/memberHelper.js index 3111b05..2e899a9 100644 --- a/src/helpers/memberHelper.js +++ b/src/helpers/memberHelper.js @@ -1,21 +1,24 @@ -import { db } from '../sequelize.js'; +import {db} from '../db.js'; import {enums} from "../enums.js"; -import { loadImage } from "canvas"; +import {loadImage} from "canvas"; import {EmptyResultError} from "sequelize"; -import {EmbedBuilder, User} from "@fluxerjs/core"; +import {EmbedBuilder} from "@fluxerjs/core"; const mh = {}; // 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. * - * @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 | null} attachmentUrl - The message attachment url. * @returns {Promise | Promise } A message, or an informational embed. + * @throws {Error} */ mh.parseMemberCommand = async function(authorId, authorFull, args, attachmentUrl){ let member;