Skip to content

Commit

Permalink
fix: caller is deprecated in current Koishi (#126)
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 030b626
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 030b626

Please sign in to comment.