added image argument

This commit is contained in:
Aster Fialla
2026-02-14 00:21:45 -05:00
parent 7c143054bd
commit 683865a613

3
bot.js
View File

@@ -47,7 +47,8 @@ client.on(GatewayDispatchEvents.MessageCreate, async ({ api, data }) => {
switch (commandName) {
case 'm':
case 'member':
const reply = await memberHelper.parseMemberCommand(data.author.id, args);
const attachment = data.attachments[0] ?? null;
const reply = await memberHelper.parseMemberCommand(data.author.id, args, attachment);
return await api.channels.createMessage(data.channel_id, {content: reply});
case 'help':
return await api.channels.createMessage(data.channel_id, {content: enums.help.PLURALFLUX});