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

Add !failure command #20

Open
EchoFrost opened this issue Jan 16, 2021 · 2 comments
Open

Add !failure command #20

EchoFrost opened this issue Jan 16, 2021 · 2 comments
Assignees
Labels
Legacy Command Migration The porting of legacy functionality into the application.

Comments

@EchoFrost
Copy link
Owner

Should include a message that mentions the command user and adds the following text:
' is a market failure'

💹

    elif message.content.startswith('!failure'):
        msg = '{0.author.mention} is a market failure'.format(message)
        yield from channel.send(msg)
@EchoFrost EchoFrost added the Legacy Command Migration The porting of legacy functionality into the application. label Jan 16, 2021
@EchoFrost EchoFrost added this to the Legacy Command Migration milestone Jan 16, 2021
@AtomicW0mbat AtomicW0mbat self-assigned this Jan 17, 2021
@AtomicW0mbat
Copy link
Collaborator

I looked through the description for Slash commands on the Discord developer page and I couldn't find a way to make it a mention a poster. Any thoughts on this? @EchoFrost

@EchoFrost
Copy link
Owner Author

I would consider exploring the optional 'allowed_mentions' field. This takes an object that should give you control over user mentions.
https://discord.com/developers/docs/interactions/slash-commands#interaction-response-interactionapplicationcommandcallbackdata
https://discord.com/developers/docs/resources/channel#allowed-mentions-object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Legacy Command Migration The porting of legacy functionality into the application.
Projects
None yet
Development

No branches or pull requests

2 participants