mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
Prettified Code!
This commit is contained in:
@@ -9,15 +9,8 @@ import { endpoints } from "../../util/constants.ts";
|
||||
*
|
||||
* ⚠️ **If you need this, you are probably doing something wrong. Always use cache.guilds.get()?.emojis
|
||||
*/
|
||||
export async function getEmoji(
|
||||
guildId: bigint,
|
||||
emojiId: bigint,
|
||||
addToCache = true
|
||||
) {
|
||||
const result = await rest.runMethod<Emoji>(
|
||||
"get",
|
||||
endpoints.GUILD_EMOJI(guildId, emojiId)
|
||||
);
|
||||
export async function getEmoji(guildId: bigint, emojiId: bigint, addToCache = true) {
|
||||
const result = await rest.runMethod<Emoji>("get", endpoints.GUILD_EMOJI(guildId, emojiId));
|
||||
|
||||
if (addToCache) {
|
||||
const guild = await cacheHandlers.get("guilds", guildId);
|
||||
|
||||
Reference in New Issue
Block a user