add constructor to MiEmoji
This commit is contained in:
parent
72da199f61
commit
173105ae24
1 changed files with 6 additions and 0 deletions
|
|
@ -84,4 +84,10 @@ export class MiEmoji {
|
|||
array: true, length: 128, default: '{}',
|
||||
})
|
||||
public roleIdsThatCanBeUsedThisEmojiAsReaction: string[];
|
||||
|
||||
constructor(data?: Partial<MiEmoji>) {
|
||||
if (data) {
|
||||
Object.assign(this, data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue