From e4450c8417624b71d779cb4f41692538f9165e10 Mon Sep 17 00:00:00 2001 From: sowgro Date: Sat, 2 Sep 2023 19:12:47 -0400 Subject: first commit --- node_modules/discord.js/src/util/Enums.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 node_modules/discord.js/src/util/Enums.js (limited to 'node_modules/discord.js/src/util/Enums.js') diff --git a/node_modules/discord.js/src/util/Enums.js b/node_modules/discord.js/src/util/Enums.js new file mode 100644 index 0000000..e3e5cac --- /dev/null +++ b/node_modules/discord.js/src/util/Enums.js @@ -0,0 +1,13 @@ +'use strict'; + +function createEnum(keys) { + const obj = {}; + for (const [index, key] of keys.entries()) { + if (key === null) continue; + obj[key] = index; + obj[index] = key; + } + return obj; +} + +module.exports = { createEnum }; -- cgit v1.2.3