Skip to content

Commit

Permalink
fix(commands/divorce): ensure right variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitchell3514 committed Feb 19, 2024
1 parent 56905a8 commit 0077146
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion core/commands/social/divorce.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ async function divorce_accepted(
);
}

if (partner.modules.RBN < 2500) {
if (toDivorceUser.modules.RBN < 2500) {
return msg.channel.send(
`<@${toDivorceId}>, you need at least ${_emoji("RBN")} 2500 to divorce.`
);
Expand Down Expand Up @@ -183,6 +183,22 @@ async function divorce_denied(msg, user, toDivorceUser, marriage) {
)}`,
color: 0xe02850,
};
const buttons = [
{
type: 2,
style: 3,
label: "Yes",
custom_id: "divorce_accept",
emoji: { name: "YEP", id: "763616714914922527" },
},
{
type: 2,
style: 4,
label: "No",
custom_id: "divorce_reject",
emoji: { name: "NOPE", id: "763616715036033084" },
},
];
buttons[0].custom_id = "divorce_lawyer_accept";
buttons[1].custom_id = "divorce_lawyer_reject";
const prompt2 = await prompt.edit({
Expand Down

0 comments on commit 0077146

Please sign in to comment.