Custom emoji (#3061)

* wip

* wip

* wip
This commit is contained in:
syuilo 2018-11-01 11:51:49 +09:00 committed by GitHub
parent 86fcd3a378
commit c21caad1c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 91 additions and 8 deletions

View file

@ -17,6 +17,12 @@ export const meta = {
}
}),
emojis: $.arr($.obj()).optional.note({
desc: {
'ja-JP': 'カスタム絵文字定義'
}
}),
disableRegistration: $.bool.optional.nullable.note({
desc: {
'ja-JP': '招待制か否か'
@ -53,6 +59,10 @@ export default (params: any) => new Promise(async (res, rej) => {
set.broadcasts = ps.broadcasts;
}
if (ps.emojis) {
set.emojis = ps.emojis;
}
if (typeof ps.disableRegistration === 'boolean') {
set.disableRegistration = ps.disableRegistration;
}