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(satori): drop legacy encoder.guildId #216

Merged
merged 3 commits into from
Jan 8, 2024
Merged

feat(satori): drop legacy encoder.guildId #216

merged 3 commits into from
Jan 8, 2024

Conversation

shigma
Copy link
Contributor

@shigma shigma commented Dec 30, 2023

implements and supersedes #196.

Affected adapters:

  • discord
  • kook
  • telegram
  • zulip

cc @ilharp @XxLittleCxX

@codecov-commenter
Copy link

codecov-commenter commented Dec 30, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (69cf597) 86.08% compared to head (4ce0444) 86.08%.
Report is 4 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #216   +/-   ##
=======================================
  Coverage   86.08%   86.08%           
=======================================
  Files           1        1           
  Lines         503      503           
  Branches      111      111           
=======================================
  Hits          433      433           
  Misses         70       70           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines -343 to +344
`<t:${Math.ceil(quote.timestamp / 1000)}:R> [[ ↑ ]](https://discord.com/channels/${this.guildId}/${channelId}/${replyId})`,
`<t:${Math.ceil(quote.timestamp / 1000)}:R> [[ ↑ ]](https://discord.com/channels/${guildId}/${channelId}/${replyId})`,
Copy link
Contributor

Choose a reason for hiding this comment

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

这里需要同时有 guildIdchannelId 才行吗?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

是的

Copy link
Contributor

Choose a reason for hiding this comment

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

那这里大概可以单独给 quote 加个属性,用来填充或覆盖 guildIdchannelId?直接调用 sendMessage 的时候没有接收的 session

@shigma shigma merged commit ac103f1 into master Jan 8, 2024
6 of 8 checks passed
@shigma shigma changed the title feat(core): drop legacy encoder.guildId feat(satori): drop legacy encoder.guildId Jan 8, 2024
@shigma shigma deleted the encoder-refa branch January 8, 2024 18:24
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.

4 participants