Send and Reply from the editable-commands plugin do the same wrong thing.

So I tried out both of them and none seems to respond on the interaction. what I want: image 1 what I get; image 2 My code:
public async runOnce(message: Message, _args: Args) {
//respond with an interaction
await reply(message, { content: 'UwU1' });
await send(message, { content: 'UwU2' });
}
public async runOnce(message: Message, _args: Args) {
//respond with an interaction
await reply(message, { content: 'UwU1' });
await send(message, { content: 'UwU2' });
}
Is the editable-commands plugin not ment for interaction responses? If not, what is the correct way to implement a response / ephemeral reponse?
Solution:
Answer: Dont use the editable-commands Plugin for responses to Slashcommands. This is how a valid Reply looks like...
No description
Jump to solution
27 Replies
chillihero
chillihero•2y ago
I found this in the DJS Docs, not sure tho how its related to the implementation with Sapphire
24
24•2y ago
Sapphire is merely a wrapper over DJS It literally does nothing but provide a way to define a command and have it ran when a specific text is sent So anything in DJS is valid Sapphire code
chillihero
chillihero•2y ago
absolutely! I think the question is more about the plugin is the send and reply not ment as interaction reply but a text reply
24
24•2y ago
I believe you'd have to respond to the interaction and the do a follow up
chillihero
chillihero•2y ago
ahh wait are interaction replys called response?
24
24•2y ago
no
chillihero
chillihero•2y ago
do I understand correctly that this editable-commands plugin is for text commands not slash commands?
24
24•2y ago
now that I don't know for certain so I won't comment I would bet you it has logic to handle both
chillihero
chillihero•2y ago
I belive its only for Message, not Interaction
chillihero
chillihero•2y ago
so I kinda answered my Question myself LOL. the other question would be how to use iinteraction responses correctly in Subcommands.
24
24•2y ago
the same way you would with a normal command
chillihero
chillihero•2y ago
what is a normal command? a textbase command like !ping or a slash command like /ping?
24
24•2y ago
both by normal I meant one without subcommands
chillihero
chillihero•2y ago
what 😭 ah
24
24•2y ago
they're pretty much the same outside of arguments atm
chillihero
chillihero•2y ago
24
24•2y ago
that would work
chillihero
chillihero•2y ago
yesss it did
Solution
chillihero
chillihero•2y ago
Answer: Dont use the editable-commands Plugin for responses to Slashcommands. This is how a valid Reply looks like
No description
Favna
Favna•2y ago
interaction commands cannot be edited under no circumstance editable-commands is for editing message commands
Favna
Favna•2y ago
chillihero
chillihero•2y ago
AHHH this is ment with the tracking of edits thanks, this clears a lot of things up
Krish
Krish•2y ago
How did you get amoled theme in pc?
Favna
Favna•2y ago
Vencord
Krish
Krish•2y ago
Isn't modded client against discord's ToS?
Alex
Alex•2y ago
technically yes but no one gives a shit as long as you don't abuse the API or go into an official discord server and boast about using one
Krish
Krish•2y ago
lol then i should switch to vencord