fix(cache): guild props being removed before saving to cache
This commit is contained in:
parent
8e5a76dbe8
commit
2b0db63f82
1 changed files with 1 additions and 0 deletions
|
@ -147,6 +147,7 @@ export class GuildManager extends BaseManager<GuildPayload, Guild> {
|
|||
|
||||
/** Sets a value to Cache */
|
||||
async set(key: string, value: GuildPayload): Promise<any> {
|
||||
value = { ...value }
|
||||
if ('roles' in value) value.roles = []
|
||||
if ('emojis' in value) value.emojis = []
|
||||
if ('members' in value) value.members = []
|
||||
|
|
Loading…
Reference in a new issue