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(Collector): add lastCollectedTimestamp #9044

Merged

Conversation

ImRodry
Copy link
Contributor

@ImRodry ImRodry commented Jan 11, 2023

Please describe the changes this PR makes and why it should be merged:

This PR adds a new property and a new getter to the Collector class to store the timestamp at which the collector last collected an item. This is useful for determining when the collector will end when an idle timeout is specified as there is currently no reliable way to get this information from Node without using private properties of the Timeout class and weird hacks

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating
  • This PR changes the library's interface (methods or parameters added)

@jaw0r3k
Copy link
Contributor

jaw0r3k commented Jan 11, 2023

you should change the name @ImRodry

@ImRodry ImRodry changed the title refactor(GuildChannel): default setParent's lockPermissions to false feat(Collector): add lastCollectedTimestamp Jan 11, 2023
@ImRodry
Copy link
Contributor Author

ImRodry commented Jan 11, 2023

lol didn't notice it

@ImRodry ImRodry force-pushed the feat/collector-add-lastCollectedTimestamp branch from 57ce859 to 4309d4d Compare January 11, 2023 15:38
@vercel
Copy link

vercel bot commented Jan 11, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
discord-js ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 12, 2023 at 7:58PM (UTC)
discord-js-guide ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 12, 2023 at 7:58PM (UTC)

@ImRodry
Copy link
Contributor Author

ImRodry commented Jan 11, 2023

The formatting errors are due to an update to prettier that changed a rule. Should I commit those changes?

ImRodry and others added 2 commits January 14, 2023 16:09
Co-authored-by: Synbulat Biishev <syjalo.dev@gmail.com>
@ImRodry ImRodry force-pushed the feat/collector-add-lastCollectedTimestamp branch from 2690fbf to 1e0f6a6 Compare January 14, 2023 16:09
@ImRodry ImRodry requested review from kyranet and removed request for vladfrangu, iCrawl and SpaceEEC January 14, 2023 16:10
@ImRodry
Copy link
Contributor Author

ImRodry commented Jan 14, 2023

would love to know how in the world I removed those review requests lol

@ImRodry ImRodry force-pushed the feat/collector-add-lastCollectedTimestamp branch from 1e0f6a6 to b0ca2c1 Compare January 14, 2023 16:11
@Syjalo
Copy link
Contributor

Syjalo commented Mar 6, 2023

Probably you can also add endingAt

@ImRodry
Copy link
Contributor Author

ImRodry commented Mar 6, 2023

maybe a new pr

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

Successfully merging this pull request may close these issues.

None yet

7 participants