1
1
mirror of https://github.com/Burn-E99/TheArtificer.git synced 2026-06-04 09:03:50 -04:00

Remove the rollDecorators command, implement roll command help library, god this was a pain to write

This commit is contained in:
Ean Milligan
2025-06-26 03:17:26 -04:00
parent 5b7ceb9f88
commit ae321885d6
24 changed files with 1212 additions and 359 deletions

View File

@@ -4,7 +4,7 @@
* December 21, 2020
*/
import { log, LogTypes as LT } from '@Log4Deno';
import { DiscordenoMessage, sendMessage } from '@discordeno';
import { DiscordenoMessage, Interaction, sendMessage } from '@discordeno';
// ask(prompt) returns string
// ask prompts the user at command line for message
@@ -87,7 +87,7 @@ Available Commands:
};
const genericLogger = (level: LT, message: string) => log(level, message);
const messageEditError = (location: string, message: DiscordenoMessage | string, err: Error) =>
const messageEditError = (location: string, message: DiscordenoMessage | Interaction | string, err: Error) =>
genericLogger(LT.ERROR, `${location} | Failed to edit message: ${JSON.stringify(message)} | Error: ${err.name} - ${err.message}`);
const messageSendError = (location: string, message: DiscordenoMessage | string, err: Error) =>
genericLogger(LT.ERROR, `${location} | Failed to send message: ${JSON.stringify(message)} | Error: ${err.name} - ${err.message}`);