Stuck at "Sending Command..." #71
-
Hi thanks for this repo I'm trying to get it working. After I've run I can see the request actually gets sent to Lambda and the CloudWatch log shows:
Do you know why is it just stuck at "Sending Command..."? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
Hi there, I'm sorry that you have trouble setting up serverless-discord bot. Unfortunately, I cannot reproduce this issue after following the README steps. Your CloudWatch logs look alright. Did you set your guild id in the commands directory? Otherwise, I suggest you try to deploy the stack again. Maybe you can add more logging using |
Beta Was this translation helpful? Give feedback.
-
Hey @ytausch thanks for getting back to me. Yeah maybe there is something else wrong with my setup, (perhaps my Discord App setup?). I will need to dig deeper and figure out why it is happening. Will get back to you mate. |
Beta Was this translation helpful? Give feedback.
-
Hi @ytausch I've tried this again with the const {SlashCommand} = require('slash-create');
module.exports = class HelloCommand extends SlashCommand {
constructor(creator) {
super(creator, {
name: 'hello',
description: 'Says "Hello there" to you',
guildIDs: ['7400923889########']
});
this.filePath = __filename;
}
async run(ctx) {
console.log(ctx);
return 'Hello there';
}
}; When I try to run /hello in my Discord (i.e. guide id 7400923889########) I still get stuck at "Sending Command". The log does show the
So it does seem the DiscordHandlerFunction on Lambda received the interaction from Discord, but something went wrong after that. Also I didn't see you mention how the Discord Application and the Bot should be set up, what Again thanks for the help! |
Beta Was this translation helpful? Give feedback.
-
Hi @ytausch thanks for your help. After completely doing everything from scratch it finally worked. (deleted Discord App/Bot and recloned this repo). Now I have one more question for you; what's the best way to develop a complex command (e.g. make axios calls to external servers, etc.) What's the best way to "run" the command locally? |
Beta Was this translation helpful? Give feedback.
-
Hey thanks @ytausch I managed to do mostly what I set out to do. I basically just prototyped my code in browser's dev tool which is a bit unglamorous but worked for me. Again thanks for your repo and all the help! |
Beta Was this translation helpful? Give feedback.
Hi @ytausch thanks for your help. After completely doing everything from scratch it finally worked. (deleted Discord App/Bot and recloned this repo).
Now I have one more question for you; what's the best way to develop a complex command (e.g. make axios calls to external servers, etc.) What's the best way to "run" the command locally?