mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 05:02:37 +01:00
(api): fix some issues
This commit is contained in:
parent
e642b6194a
commit
5c4774a6f9
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user