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

Feature/button reaction change #44

Merged

Conversation

thedarkrai07
Copy link
Contributor

No description provided.

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.

See comment - need to support existing messages that don't have buttons yet.

src/app/app.ts Show resolved Hide resolved
src/app/events/InteractionCreate.ts Show resolved Hide resolved
src/app/activity/bounty/ActivityHandler.ts Show resolved Hide resolved
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.

Couple more fixes needed. See comments

src/app/requests/RefreshRequest.ts Outdated Show resolved Hide resolved
src/app/utils/DiscordUtils.ts Show resolved Hide resolved
let errorContent = e.message;
if (e instanceof NotificationPermissionError) {
return ErrorUtils.sendToDefaultChannel(e.message, request);
} else if (e instanceof ValidationError) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Validation and Authorization errors are now failing silently. Need to add back the error messages to the user.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, check line 234, 235

Copy link
Collaborator

Choose a reason for hiding this comment

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

Huh, I could swear it was failing with no messages for me. Now it working. OK, good

}) {
if (args.commandContext) {
if (args.commandContext.subcommands[0] !== Activities.apply) {
throw new Error('ApplyRequest attempted created for non Apply activity.');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Refresh, not Apply

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

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.

Couldn't reproduce the silent error :)

let errorContent = e.message;
if (e instanceof NotificationPermissionError) {
return ErrorUtils.sendToDefaultChannel(e.message, request);
} else if (e instanceof ValidationError) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Huh, I could swear it was failing with no messages for me. Now it working. OK, good

@tescher tescher merged commit 8486201 into BanklessDAO:develop Jun 19, 2022
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

2 participants