diff options
author | Lobo Metalúrgico <43734867+LoboMetalurgico@users.noreply.github.com> | 2021-10-09 11:43:27 -0300 |
---|---|---|
committer | Lobo Metalúrgico <43734867+LoboMetalurgico@users.noreply.github.com> | 2021-10-09 13:50:34 -0300 |
commit | bfd74459782148f166461356d5ee9291f496b68c (patch) | |
tree | 556eb237e344c2c7419d7abfbd7acc8baf9cb5f1 /api/src/routes/guilds/#guild_id | |
parent | (api): implement post on emoji route (diff) | |
download | server-bfd74459782148f166461356d5ee9291f496b68c.tar.xz |
(api): fix some issues
Diffstat (limited to 'api/src/routes/guilds/#guild_id')
-rw-r--r-- | api/src/routes/guilds/#guild_id/emoji.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/api/src/routes/guilds/#guild_id/emoji.ts b/api/src/routes/guilds/#guild_id/emoji.ts index 6b194f7b..000c9949 100644 --- a/api/src/routes/guilds/#guild_id/emoji.ts +++ b/api/src/routes/guilds/#guild_id/emoji.ts @@ -10,7 +10,6 @@ import { Snowflake, User } from "@fosscord/util"; -import { HTTPError } from "lambert-server"; import { route } from "@fosscord/api"; const router = Router(); @@ -75,7 +74,7 @@ router.post("/", route({ body: "EmojiCreateSchema", permission: "MANAGE_EMOJIS_A ...body, user: user, managed: false, - animated: false, // TODO: Add support animated emojis + animated: false, // TODO: Add support animated emojis available: true }); @@ -108,7 +107,7 @@ router.patch("/:emoji_id", route({ body: "EmojiModifySchema", permission: "MANAG emojis: await Emoji.find({ guild_id: guild_id }) } } as GuildEmojiUpdateEvent) - ]) + ]); return res.json(emoji); }); |