koishijs / koishi-plugin-booru

Image service for Koishi | 最好的涩图插件!
https://booru.koishi.chat
MIT License
12 stars 8 forks source link

Bug: Migrate obsolete Context.current and Service.prototype.collect functions #174

Closed MaikoTan closed 7 months ago

MaikoTan commented 7 months ago

Describe the bug

The Context.current and Service.prototype.collect functions are marked as deprecated in the current version of Koishi, should we migrate them to the latest method.

https://github.com/koishijs/koishi-plugin-booru/blob/a240ea26fef75e30374e179ccda749bdbdfba80b/packages/core/src/index.ts#L30-L34

Steps to reproduce

N/A

Expected behavior

Not using deprecated methods.

Screenshots

No response

Relevant log output

No response

Launcher

Koishi CLI (koishi start)

Sources

Others

Versions

Additional context

No response