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?
13 Replies
chillihero
chillihero2y ago
I found this in the DJS Docs, not sure tho how its related to the implementation with Sapphire
24
242y 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
chillihero2y 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
242y ago
I believe you'd have to respond to the interaction and the do a follow up
chillihero
chillihero2y ago
ahh wait are interaction replys called response?
24
242y ago
no
chillihero
chillihero2y ago
do I understand correctly that this editable-commands plugin is for text commands not slash commands?
24
242y 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
chillihero2y ago
I belive its only for Message, not Interaction
chillihero
chillihero2y ago
so I kinda answered my Question myself LOL. the other question would be how to use iinteraction responses correctly in Subcommands.
24
242y ago
the same way you would with a normal command
chillihero
chillihero2y ago
what is a normal command? a textbase command like !ping or a slash command like /ping?
24
242y ago
both by normal I meant one without subcommands
Want results from more Discord servers?
Add your server