Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/issues 50 52 #57

Merged
merged 5 commits into from
Aug 29, 2022
Merged

Conversation

thedarkrai07
Copy link
Contributor

Resolves #50 #51 #52

Copy link
Collaborator

@tescher tescher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

I think the intention for the buttons instead of links was to also include them on activityResponse in addition to activityNotification.

While you're at it, the Help activity probably needs to use activityResponse instead of .send so we can centralize error handling when we do that.

@thedarkrai07
Copy link
Contributor Author

Have updated and pushed the changes. have not extensively tested it yet

Copy link
Collaborator

@tescher tescher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still having the link in the content doesn't really make sense, it's redundant with the button. Let's get rid of the link, and maybe reword the message to include the bounty title so the user knows what bounty is being referenced without having to jump to it. What do you think?
image

Copy link
Collaborator

@tescher tescher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting an error when applying for a "require-application" bounty. This seems to happen when you are calling activityResponse with no bounty link, and it is in response to a button press. It calls interactionResponse, which creates an empty MessageActionRow, which fails. It also fails in Delete and probably elsewhere.

In Apply activity
62f3b519e9f037acd980a86f bounty applied for by chkaloon#6313
error
{
  "indexMeta": true,
  "meta": {
    "name": "Error",
    "message": "Invalid Form Body\ndata.components[0].components: This field is required",
    "stack": "Error: Invalid Form Body\ndata.components[0].components: This field is required\n    at Object.interactionResponse (/home/tescher/bountybot-/dist/app/utils/DiscordUtils.js:144:23)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at async Object.activityResponse (/home/tescher/bountybot-/dist/app/utils/DiscordUtils.js:162:13)\n    at async applyBounty (/home/tescher/bountybot-/dist/app/activity/bounty/Apply.js:30:5)\n    at async Object.run (/home/tescher/bountybot-/dist/app/activity/bounty/ActivityHandler.js:47:17)\n    at async handler (/home/tescher/bountybot-/dist/app/activity/bounty/Handler.js:32:5)\n    at async default_1.interactionHandler (/home/tescher/bountybot-/dist/app/events/InteractionCreate.js:231:13)\n    at async default_1.execute (/home/tescher/bountybot-/dist/app/events/InteractionCreate.js:62:9)"
  }
}
/home/tescher/bountybot-/dist/app/utils/DiscordUtils.js:144
                throw new RuntimeError_1.default(e);
                      ^

RuntimeError: Invalid Form Body
data.components[0].components: This field is required
    at Object.interactionResponse (/home/tescher/bountybot-/dist/app/utils/DiscordUtils.js:144:23)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async default_1.interactionHandler (/home/tescher/bountybot-/dist/app/events/InteractionCreate.js:255:20)
    at async default_1.execute (/home/tescher/bountybot-/dist/app/events/InteractionCreate.js:62:9)
[nodemon] app crashed - waiting for file changes before starting...

@tescher tescher requested a review from Behold3th August 25, 2022 13:50
Copy link
Collaborator

@Behold3th Behold3th left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 work @thedarkrai07 and @tescher

@tescher tescher merged commit 6562549 into BanklessDAO:develop Aug 29, 2022
@Behold3th
Copy link
Collaborator

Behold3th commented Aug 29, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants