Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: ephemeral messages support #5

Open
timbru31 opened this issue May 20, 2021 · 1 comment
Open

Feature Request: ephemeral messages support #5

timbru31 opened this issue May 20, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@timbru31
Copy link
Contributor

timbru31 commented May 20, 2021

I'd like to request the following feature:
Make the bot requests ephemeral, i.e., private responses.

According to the Discord documentation at https://discord.com/developers/docs/interactions/slash-commands#interaction-response, we'd need to pass flags: 64 in the data object here: https://github.com/GEMISIS/discord-bot-cdk-construct/blob/main/src/functions/DiscordBotFunction.ts#L43

Preferable this flag would be user controlled, i.e, setting a variable when making a new DiscordBotConstruct.


This should probably be achievable with custom stack properties and then passing those as env variables to the lambda.

@GEMISIS
Copy link
Owner

GEMISIS commented May 23, 2021

Hmm... this will need to have some design considerations I think, as there will likely be some commands that you want to be ephemeral and some that you do not. I'll take a look into how this can be done.

@GEMISIS GEMISIS self-assigned this May 23, 2021
@GEMISIS GEMISIS added the enhancement New feature or request label May 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants