Skip to content

Commit

Permalink
Merge pull request #100 from TogetherCrew/98-add-nicknameglobalname-f…
Browse files Browse the repository at this point in the history
…ield-to-guildmember-schema

98 add nicknameglobalname field to guildmember schema
  • Loading branch information
cyri113 authored Jul 28, 2023
2 parents fd936a7 + 95d7ad4 commit 27def6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@togethercrew.dev/db",
"version": "2.4.94",
"version": "2.4.95",
"description": "All interactions with DB",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions src/models/schemas/GuildMember.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ const guildMemberSchema = new Schema<IGuildMember, GuildMemberModel>({
type: Date,
default: null,
},
globalName: {
type: String,
},
nickname: {
type: String,
},
});

guildMemberSchema.method('softDelete', async function softDelete() {
Expand Down

0 comments on commit 27def6e

Please sign in to comment.