Skip to content

Commit

Permalink
Revert "Revert "fix: custom.ts""
Browse files Browse the repository at this point in the history
This reverts commit d033b2f.
  • Loading branch information
Dominik K committed Dec 4, 2023
1 parent d033b2f commit c318f1d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/commands/settings/custom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const command: ChatInputCommand = {
.setColor("#0598F4")
.setDescription(
`${
generativeText.value === false
generativeText?.value === false
? `${client.translation.get(
guildDb?.language,
"wyCustom.success.embedAdd.descAccept",
Expand Down Expand Up @@ -206,7 +206,7 @@ const command: ChatInputCommand = {
)
.setFooter({
text: `Would You ${
generativeText.value === false
!generativeText.value
? `| ${client.translation.get(
guildDb?.language,
"wyCustom.success.embedAdd.footerDisable",
Expand Down Expand Up @@ -254,7 +254,7 @@ const command: ChatInputCommand = {

interaction
.reply(
generativeText.value === false
!generativeText.value
? {
embeds: [typeEmbed],
components: [add],
Expand All @@ -267,10 +267,7 @@ const command: ChatInputCommand = {
)
.then((msg) =>
setTimeout(() => {
if (
generativeText.value === false &&
client.customAdd.has(newID)
) {
if (!generativeText.value && client.customAdd.has(newID)) {
msg.edit({ components: [addDisable] });
client.customAdd.delete(newID);
}
Expand Down

0 comments on commit c318f1d

Please sign in to comment.