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

fix(Message): editedTimestamp defaulting to 0 #5847

Merged
merged 2 commits into from Jun 15, 2021

Conversation

ImRodry
Copy link
Contributor

@ImRodry ImRodry commented Jun 13, 2021

Please describe the changes this PR makes and why it should be merged:
Since edited_timestamp is always present in the message data from Discord (see https://discord.com/developers/docs/resources/channel#message-object), the editedTimestamp property for messages that have never been edited would be 0. This fixes that so that it's null when it hasn't been edited, and the timestamp for edited messages, just like the data from Discord.

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

src/structures/Message.js Outdated Show resolved Hide resolved
@iCrawl iCrawl merged commit 671436c into discordjs:master Jun 15, 2021
@ImRodry ImRodry deleted the fix-editedTimestamp branch June 20, 2021 11:29
@iCrawl iCrawl added this to the Version 13 milestone Jun 27, 2021
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

5 participants