Skip to content

Commit

Permalink
Update AoiError.js makeMessageError thing use options parser if optio…
Browse files Browse the repository at this point in the history
…ns is a string
  • Loading branch information
devlordduck authored Nov 28, 2023
1 parent fa71abc commit b1dfc50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/classes/AoiError.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const {
ComponentParser,
EmbedParser,
FileParser,
OptionParser
} = Util.parsers.parsers;
const {Time} = require("../utils/helpers/customParser.js");
const {BaseInteraction} = require("discord.js");
Expand Down Expand Up @@ -97,6 +98,9 @@ class AoiError {
if (message.components && typeof message.components === "string") {
message.components = await ComponentParser.code(d, { part: message.files, Checker });
}
if (options && typeof options === "string") {
options = await OptionParser.code(d, { part: options, Checker })
}
} else {
message = {
content:
Expand Down

0 comments on commit b1dfc50

Please sign in to comment.