Skip to content

Commit

Permalink
some update idk cause of merge conflict somehow
Browse files Browse the repository at this point in the history
  • Loading branch information
USERSATOSHI committed Jun 25, 2023
1 parent e68b94d commit 960886d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
12 changes: 0 additions & 12 deletions src/functions/discord/message/$description.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,29 +53,17 @@ export const $description: FunctionData = {
};

currentScope.setters += escapeResult(
<<<<<<< HEAD
`${escapeVars(`${currentScope.name}_embeds`)}[${index}] = { fields: [] };`
=======
`${escapeVars(
currentScope.name + "_embeds",
)}[${index}] = { fields: [] };`,
>>>>>>> d679aa85ca16eee7375524de8ce607c9ee85db14
);
}

embed.description = actualDescription;
currentScope.embeds[index] = embed;

const res = escapeResult(
<<<<<<< HEAD
`${escapeVars(`${currentScope.name}_embeds`)}[${index}].description = ${parseString(
actualDescription,
)};`,
=======
`${escapeVars(
currentScope.name + "_embeds",
)}[${index}].description = ${parseString(actualDescription)};`,
>>>>>>> d679aa85ca16eee7375524de8ce607c9ee85db14
);

currentScope.update(res, data);
Expand Down
11 changes: 1 addition & 10 deletions src/functions/discord/message/$title.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,30 +53,21 @@ export const $title: FunctionData = {
};

currentScope.setters += escapeResult(
<<<<<<< HEAD
`${escapeVars(`${currentScope.name}_embeds`)}[${index}] = { fields: [] };`
=======
`${escapeVars(
currentScope.name + "_embeds",
`${currentScope.name}_embeds`,
)}[${index}] = { fields: [] };`,
>>>>>>> d679aa85ca16eee7375524de8ce607c9ee85db14
);
}

embed.title = actualTitle;
currentScope.embeds[index] = embed;

const res = escapeResult(
<<<<<<< HEAD
`${escapeVars(`${currentScope.name}_embeds`)}[${index}].title = ${parseString(actualTitle)};`
=======
`${escapeVars(
currentScope.name + "_embeds",
)}[${index}].title = ${parseString(actualTitle)};`,
>>>>>>> d679aa85ca16eee7375524de8ce607c9ee85db14
);

currentScope.update(res, data);
return {
code: res,
scope,
Expand Down

0 comments on commit 960886d

Please sign in to comment.