summary refs log tree commit diff
path: root/api/src/schema/Emoji.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-01 23:33:14 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-01 23:33:14 +0200
commit0fbe9131adb8ef12f11362679c026ea285ea2e80 (patch)
tree0a98cbcb471aa4abe94d80c4aa7f57227e68f8e1 /api/src/schema/Emoji.ts
parentMerge pull request #302 from sudenoh/master (diff)
downloadserver-0fbe9131adb8ef12f11362679c026ea285ea2e80.tar.xz
:sparkles: generate open api schema based on body and db entities
Diffstat (limited to 'api/src/schema/Emoji.ts')
-rw-r--r--api/src/schema/Emoji.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/api/src/schema/Emoji.ts b/api/src/schema/Emoji.ts

index deaccf5c..0406919c 100644 --- a/api/src/schema/Emoji.ts +++ b/api/src/schema/Emoji.ts
@@ -1,14 +1,13 @@ // https://discord.com/developers/docs/resources/emoji - export const EmojiCreateSchema = { name: String, //name of the emoji image: String, // image data the 128x128 emoji image uri - roles: Array //roles allowed to use this emoji + $roles: Array //roles allowed to use this emoji }; export interface EmojiCreateSchema { name: string; // name of the emoji image: string; // image data the 128x128 emoji image uri - roles: []; //roles allowed to use this emoji + roles?: string[]; //roles allowed to use this emoji }