XxX__Kamil_YT_XxX
XxX__Kamil_YT_XxX
DIAdiscord.js - Imagine an app
Created by XxX__Kamil_YT_XxX on 1/30/2024 in #djs-questions
Collection problem
Tysm
9 replies
DIAdiscord.js - Imagine an app
Created by XxX__Kamil_YT_XxX on 1/30/2024 in #djs-questions
Collection problem
One more question, would collection.get("xyz")["array"].push("4") work too?
9 replies
DIAdiscord.js - Imagine an app
Created by XxX__Kamil_YT_XxX on 1/30/2024 in #djs-questions
Collection problem
thank you!
9 replies
DIAdiscord.js - Imagine an app
Created by XxX__Kamil_YT_XxX on 1/30/2024 in #djs-questions
Collection problem
Im thinking about doing this:
const { Collection } = require("discord.js");
const collection = new Collection();
collection.set("xyz", ["1", "2", "3"]);

const query = "xyz";
const array = collection.get(query); // ["1", "2", "3"]
array.push("4");
collection.set(query, array);
const { Collection } = require("discord.js");
const collection = new Collection();
collection.set("xyz", ["1", "2", "3"]);

const query = "xyz";
const array = collection.get(query); // ["1", "2", "3"]
array.push("4");
collection.set(query, array);
but in an easier way
9 replies
DIAdiscord.js - Imagine an app
Created by XxX__Kamil_YT_XxX on 11/24/2023 in #djs-questions
validating MessageOptions
thank you
4 replies