diff --git a/libs/gateway/src/websocket/Cluster.ts b/libs/gateway/src/websocket/Cluster.ts index bc167a5..ac9795a 100644 --- a/libs/gateway/src/websocket/Cluster.ts +++ b/libs/gateway/src/websocket/Cluster.ts @@ -193,7 +193,7 @@ export class Cluster extends EventEmitter { ...shardOptions } = options; - this.guilds = redis ? new RedisStore({ redis, hash: 'guilds' }) : new Store(); + this.guilds = redis ? new RedisStore({ redis, hash: 'guilds', encode: JSON.stringify, decode: JSON.parse }) : new Store(); this.rest = new RestManager(auth, { mutex: redis ? new RedisMutex(redis) : new MemoryMutex() }); this.shardCount = shardCount; this.startingShard = startingShard;