Skip to content

Commit fd936a7

Browse files
authored
Merge pull request #99 from TogetherCrew/98-add-nicknameglobalname-field-to-guildmember-schema
98 add nicknameglobalname field to guildmember schema
2 parents 79fc5b2 + 704c6df commit fd936a7

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,10 @@ GuildMember {
106106
joinedAt: Date | null,
107107
isBot?: boolean,
108108
discriminator?: string,
109-
permissions?: string;
110-
deletedAt?: Date | null
109+
permissions?: string,
110+
deletedAt?: Date | null,
111+
globalName?: string | null;
112+
nickname?: string | null;
111113
}
112114

113115
```

__tests__/unit/models/guildMember.model.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ describe('guildMember model', () => {
1515
isBot: true,
1616
discriminator: 'str',
1717
permissions: '137411140513354n',
18+
globalName: 'Behzad',
19+
nickname: 'Beh',
1820
};
1921
});
2022
test('should correctly validate a valid guildMember data', async () => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@togethercrew.dev/db",
3-
"version": "2.4.93",
3+
"version": "2.4.94",
44
"description": "All interactions with DB",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

src/interfaces/GuildMember.interface.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ export interface IGuildMember {
1111
discriminator: string;
1212
permissions?: string;
1313
deletedAt?: Date | null;
14+
globalName?: string | null;
15+
nickname?: string | null;
1416
}
1517

1618
export interface IGuildMemberUpdateBody {
@@ -21,6 +23,8 @@ export interface IGuildMemberUpdateBody {
2123
joinedAt?: Date | null;
2224
permissions?: string;
2325
deletedAt?: Date | null;
26+
globalName?: string | null;
27+
nickname?: string | null;
2428
}
2529

2630
export interface IGuildMemberMethods {

0 commit comments

Comments
 (0)