Skip to content

Commit

Permalink
client should be accessed via User
Browse files Browse the repository at this point in the history
  • Loading branch information
Didas-git committed May 28, 2024
1 parent 3f5ae64 commit 41900fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/transformers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lilybird/transformers",
"version": "0.4.0",
"version": "0.4.1",
"description": "Event transformers and more for lilybird",
"main": "./dist/index.js",
"author": "DidaS",
Expand Down
4 changes: 4 additions & 0 deletions packages/transformers/src/factories/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ export class User {
public readonly avatarDecoration: string | undefined | null;
public readonly member: GuildMember | undefined;

public readonly client: Client;

public constructor(client: Client, user: LilyUser.Structure) {
this.client = client;

this.id = user.id;
this.username = user.username;
this.discriminator = user.discriminator;
Expand Down

0 comments on commit 41900fa

Please sign in to comment.