Skip to content

More commands examples #33

Answered by ytausch
JeBenzon asked this question in Q&A
Jan 21, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi,

first, please make sure to set your guild id in src/commands_layer/nodejs/commands/helloCommand.js. The application command should then be pushed to Discord after you deployed the SAM application.

To execute the 'helloCommand' command, start typing /hello in the text channel of a Discord guild where your bot is authorized. You should then see a suggestion popup like this:

After you hit enter, the command should be executed.

If you do not get a suggestion popup, double check that you authorized your application and that your commands were indeed deployed correctly. To do this, open the logs of the CreateCommandsFunction lambda by opening the AWS CloudWatch console and then navigating to

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JeBenzon
Comment options

@ytausch
Comment options

Answer selected by ytausch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants