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-08-13 13:07:25 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-13 13:07:25 +0200
commit48c796bbd347c98eeef9d0dbef20587685afb7e3 (patch)
tree2f2d3b02d71b1f68edffc28f1d6408248b11f878 /api/src/schema/Emoji.ts
parentabstract Event emission (diff)
parentserver-util 1.3.55 (diff)
downloadserver-48c796bbd347c98eeef9d0dbef20587685afb7e3.tar.xz
Merge branch 'master' of https://github.com/fosscord/fosscord-api
Diffstat (limited to 'api/src/schema/Emoji.ts')
-rw-r--r--api/src/schema/Emoji.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/api/src/schema/Emoji.ts b/api/src/schema/Emoji.ts
new file mode 100644

index 00000000..deaccf5c --- /dev/null +++ b/api/src/schema/Emoji.ts
@@ -0,0 +1,14 @@ +// 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 +}; + +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 +}