fix: use the correct server member ID in store

This commit is contained in:
Paul Makles
2023-04-13 16:15:10 +01:00
parent a606f9e4ef
commit f6cb9fc80c
+1 -1
View File
@@ -32,7 +32,7 @@ export class ServerMemberCollection extends ClassCollection<
* @returns Message
*/
async fetch(serverId: string, userId: string): Promise<ServerMember> {
const member = this.get(userId);
const member = this.get(serverId + userId);
if (member) return member;
const data = await this.client.api.get(