xubby
xubby
DIAdiscord.js - Imagine an app
Created by xubby on 6/21/2023 in #djs-questions
conversion of ApplicationCommand to SlashCommandBuilder object
ohh FeelsBadMan
46 replies
DIAdiscord.js - Imagine an app
Created by xubby on 6/21/2023 in #djs-questions
conversion of ApplicationCommand to SlashCommandBuilder object
ikr! :pepehands:
46 replies
DIAdiscord.js - Imagine an app
Created by xubby on 6/21/2023 in #djs-questions
conversion of ApplicationCommand to SlashCommandBuilder object
FeelsBadMan I guess it's time to move to raw json
46 replies
DIAdiscord.js - Imagine an app
Created by xubby on 6/21/2023 in #djs-questions
conversion of ApplicationCommand to SlashCommandBuilder object
because I'll have to manually pass each property and who knows how many transformations I'd have to do to each property recursively
46 replies
DIAdiscord.js - Imagine an app
Created by xubby on 6/21/2023 in #djs-questions
conversion of ApplicationCommand to SlashCommandBuilder object
ya but like having the same property names would be easier coz the only work left would be matching mutual properties in both objects
46 replies
DIAdiscord.js - Imagine an app
Created by xubby on 6/21/2023 in #djs-questions
conversion of ApplicationCommand to SlashCommandBuilder object
it's weird that APIApplicationCommand is the same as builder object tho 🤔
46 replies
DIAdiscord.js - Imagine an app
Created by xubby on 6/21/2023 in #djs-questions
conversion of ApplicationCommand to SlashCommandBuilder object
it's the opposite, I want the ApplicationCommand -> SlashCommandBuilder object
46 replies
DIAdiscord.js - Imagine an app
Created by xubby on 6/21/2023 in #djs-questions
conversion of ApplicationCommand to SlashCommandBuilder object
I wish the slash command builder used the same property names as the API does djsGame
46 replies
DIAdiscord.js - Imagine an app
Created by xubby on 6/21/2023 in #djs-questions
conversion of ApplicationCommand to SlashCommandBuilder object
nah.. it's the same
46 replies
DIAdiscord.js - Imagine an app
Created by xubby on 6/21/2023 in #djs-questions
conversion of ApplicationCommand to SlashCommandBuilder object
not to forget the differences in values and names of properties
46 replies
DIAdiscord.js - Imagine an app
Created by xubby on 6/21/2023 in #djs-questions
conversion of ApplicationCommand to SlashCommandBuilder object
if I serialize it and compare, it will always be false coz the API data contains more properties than the builder object does
46 replies
DIAdiscord.js - Imagine an app
Created by xubby on 6/21/2023 in #djs-questions
conversion of ApplicationCommand to SlashCommandBuilder object
I'm trying to compare the whole object and see if there's any difference, in relation to the other
46 replies
DIAdiscord.js - Imagine an app
Created by xubby on 6/21/2023 in #djs-questions
conversion of ApplicationCommand to SlashCommandBuilder object
so my only option is to access them by their names
46 replies
DIAdiscord.js - Imagine an app
Created by xubby on 6/21/2023 in #djs-questions
conversion of ApplicationCommand to SlashCommandBuilder object
I would have gone with iterating them with a for..in loop but I really doubt the ordering in the object
46 replies
DIAdiscord.js - Imagine an app
Created by xubby on 6/21/2023 in #djs-questions
conversion of ApplicationCommand to SlashCommandBuilder object
I mean even if I do so, how would I access the properties. I'm actually stuck on a way to access properties with the same name easily like: dmPermission and dm_permission
46 replies
DIAdiscord.js - Imagine an app
Created by xubby on 6/21/2023 in #djs-questions
conversion of ApplicationCommand to SlashCommandBuilder object
so stressful
46 replies
DIAdiscord.js - Imagine an app
Created by xubby on 6/21/2023 in #djs-questions
conversion of ApplicationCommand to SlashCommandBuilder object
💀 if I use the methods, it would be another adventure in rewrite my own slash command builder
46 replies
DIAdiscord.js - Imagine an app
Created by xubby on 6/21/2023 in #djs-questions
conversion of ApplicationCommand to SlashCommandBuilder object
check system to decide whether to deploy all/new local commands if the commands fetch from the API don't match the local ones
46 replies
DIAdiscord.js - Imagine an app
Created by xubby on 6/21/2023 in #djs-questions
conversion of ApplicationCommand to SlashCommandBuilder object
how if the scb constructor doesn't take arguments?
46 replies