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

Send receiver a dm on CodeyCoin transfer to notify them #507

Merged
merged 3 commits into from
Jan 27, 2024

Conversation

Fan-Yang-284
Copy link
Contributor

Summary of Changes

Upon transfers being initiated, send the receiving user a DM with a link to the transfer in order to notify them.

Also edits the transfer embed status message upon transfer completion to display user mentions instead of username

Motivation and Explanation

We previously added a timeout to transfers, so without the receiving user being aware of the transfer beforehand it is difficult to react and accept it within the timeout.

Related Issues

resolves #506

Steps to Reproduce

Coordinate with a second person to test transfers, or comment out the code that prevents sending transfers to oneself.

Demonstration of Changes

image
image

Further Information and Comments

Apologies for the delay in getting this fixed

Copy link
Contributor

@probro27 probro27 left a comment

Choose a reason for hiding this comment

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

@Fan-Yang-284 Couple of changes needed but solid work. Not sure why the message link is not showing up, since it does show up in the PR screenshots. I manually printed it out in the logs and it shows up as undefined, however message does exist (since message.guild?.name does show up correctly).

src/commandDetails/coin/transfer.ts Outdated Show resolved Hide resolved
src/commandDetails/coin/transfer.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@probro27 probro27 left a comment

Choose a reason for hiding this comment

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

@Fan-Yang-284 LGTM! Works perfectly and should be good to go!
Thanks for working on this.

@Fan-Yang-284 Fan-Yang-284 merged commit 1813bd7 into main Jan 27, 2024
2 checks passed
@Fan-Yang-284 Fan-Yang-284 deleted the issue-#506 branch January 27, 2024 21:04
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.

Notify receiver upon CodeyCoin transfer
2 participants