Try to call related api(such as client.Notes().Create) will get json: cannot unmarshal object into Go struct field User.createdNote.user.emojis of type []models.Emoji error.
Removing the emoji field from the User and Note structures in models/user.go and models/note.go seems to be effective
Tested on misskey v13.13.2
Possible Drawbacks
I'm sorry, as I'm not familiar with the library structure, there may be other areas that need to be modified.
Verification Process
I have commented these two fields and have used them normally on my program without any errors
Release Notes
Remove emoji field from note and user model to adapt to Misskey v13.13.2
coverage: 83.806%. remained the same when pulling 42559be9b418388144afa7073d277a7251a742be on creamlike1024:main into c6d907d4a6fc12815f79ba20a9891392f4ad57cf on yitsushi:main.
Description of the Change
Misskey has removed
emoji
field from the note and user json response struct. endpoint:/api/notes/create
Try to call related api(such as
client.Notes().Create
) will getjson: cannot unmarshal object into Go struct field User.createdNote.user.emojis of type []models.Emoji
error.Removing the emoji field from the
User
andNote
structures inmodels/user.go
andmodels/note.go
seems to be effectiveTested on misskey v13.13.2
Possible Drawbacks
I'm sorry, as I'm not familiar with the library structure, there may be other areas that need to be modified.
Verification Process
I have commented these two fields and have used them normally on my program without any errors
Release Notes
Remove emoji field from note and user model to adapt to Misskey v13.13.2