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

feat(Discord Node): New sendAndWait operation #12894

Merged
merged 15 commits into from
Jan 31, 2025

Conversation

michael-radency
Copy link
Contributor

Summary

New sendAndWait operation

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/NODE-2325/discord-sendandwait-operation

@michael-radency michael-radency added node/improvement New feature or request n8n team Authored by the n8n team labels Jan 28, 2025
Copy link

codecov bot commented Jan 28, 2025

Codecov Report

Attention: Patch coverage is 68.57143% with 22 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...kages/nodes-base/nodes/Discord/v2/helpers/utils.ts 55.00% 16 Missing and 2 partials ⚠️
...iscord/v2/actions/message/sendAndWait.operation.ts 73.33% 4 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Contributor

@dana-gill dana-gill left a comment

Choose a reason for hiding this comment

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

Follow up question, and I'm not sure if this is out of scope: Shouldn't we send some sort of confirmation after the user hits approval or decline?

@@ -20,6 +20,8 @@ export const description: INodeProperties[] = getSendAndWaitProperties(
undefined,
{
noButtonStyle: true,
defaultApproveLabel: '✓ Approve',
defaultDisapproveLabel: '✗ Decline',
Copy link
Contributor

Choose a reason for hiding this comment

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

I might be using this wrong -- when I tried to configure this on Discord, I don't get a Decline option
Screenshot 2025-01-29 at 16 31 59

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dana-gill
by default message send with one button option, you need to chose corresponding Approval option
image

Copy link
Contributor

@dana-gill dana-gill left a comment

Choose a reason for hiding this comment

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

typo :) And it looks like Codecov is complaining about tests for utils.ts. If there could be more testing for that, that would be great 🙏

packages/nodes-base/nodes/Discord/v2/helpers/utils.ts Outdated Show resolved Hide resolved
Copy link
Contributor

✅ All Cypress E2E specs passed

Copy link

cypress bot commented Jan 31, 2025

n8n    Run #9061

Run Properties:  status check passed Passed #9061  •  git commit 3d8e8e88c9: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 michael-radency 🗃️ e2e/*
Project n8n
Branch Review node-2325-discord-sendandwait-operation
Run status status check passed Passed #9061
Run duration 04m 29s
Commit git commit 3d8e8e88c9: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 michael-radency 🗃️ e2e/*
Committer Michael Kret
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 5
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 433
View all changes introduced in this branch ↗︎

@michael-radency michael-radency merged commit d47bfdd into master Jan 31, 2025
37 checks passed
@michael-radency michael-radency deleted the node-2325-discord-sendandwait-operation branch January 31, 2025 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team node/improvement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants