Skip to content

Commit

Permalink
fix: caller is deprecated in current Koishi
Browse files Browse the repository at this point in the history
fix #123
  • Loading branch information
MaikoTan authored Nov 30, 2023
1 parent 7c02185 commit e6edae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ImageService extends Service {
register(source: ImageSource) {
const index = this.sources.length
this.sources.push(source)
return this.caller.collect('booru', () => delete this.sources[index])
return this[Context.current].collect('booru', () => delete this.sources[index])
}

hasSource(name?: string): boolean {
Expand Down

0 comments on commit e6edae5

Please sign in to comment.