Skip to content

Commit

Permalink
fix(ChannelManager): shouldCacheChannel getter (#99)
Browse files Browse the repository at this point in the history
* fix(ChannelManager): shouldCacheChannel getter

* chore: changeset
  • Loading branch information
DaStormer authored May 8, 2022
1 parent 19354f5 commit b3ddf90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/heavy-turtles-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"guilded.js": patch
---

fix(ChannelManager): shouldCacheChannel getter
2 changes: 1 addition & 1 deletion packages/guilded.js/lib/managers/global/ChannelManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { ChannelType as APIChannelType } from "@guildedjs/guilded-api-typin

export class GlobalChannelManager extends CacheableStructManager<string, Channel> {
get shouldCacheChannel() {
return this.client.options?.cache !== false;
return this.client.options?.cache?.cacheChannels !== false;
}

create(options: RESTPostChannelsBody): Promise<Channel> {
Expand Down

0 comments on commit b3ddf90

Please sign in to comment.