Skip to content

Commit 572b713

Browse files
committed
refactor(User): make second param of constructor 'data'
(instead of 'username', for consistency with ClientUser and all of the other data types)
1 parent aedff86 commit 572b713

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/struct/User.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ export default class User {
1515

1616
/**
1717
* @param client The client used to get the user
18-
* @param username The user's username
18+
* @param data The data obtained from the API
1919
*/
20-
constructor(client: PastebinClient, username: string) {
20+
constructor(client: PastebinClient, data: any) {
2121
this.client = client
22-
this.username = username
22+
this.username = data.username
2323
}
2424

2525
/**

0 commit comments

Comments
 (0)