summary refs log tree commit diff
path: root/api
diff options
context:
space:
mode:
authorIntevel ツ <59223342+Intevel@users.noreply.github.com>2021-08-13 12:18:21 +0200
committerIntevel ツ <59223342+Intevel@users.noreply.github.com>2021-08-13 12:18:21 +0200
commitca1752d8b4eafdaf40830a93ce897fb8844be9a7 (patch)
tree5d49d7100b8cd729776f00817a37d5d13c273a52 /api
parentMerge branch 'master' of https://github.com/fosscord/fosscord-server (diff)
downloadserver-ca1752d8b4eafdaf40830a93ce897fb8844be9a7.tar.xz
Create Emoji.ts
Diffstat (limited to 'api')
-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
+}