DevLog #9
I’m developing a new command called /koi-user. It displays information about the user you choose.
Since the arguments of slash commands in Slack aren’t very organized (in the sense of having defined types), I had to work around the problem. In Discord, for example, you can define an argument as user_mention, so Discord itself understands that it’s a user.
In Slack, it doesn’t work that way. You can’t even pass a mention as an argument to the command, lol.
So the solution I found was to create a modal. When you use the command, a window opens with all the users in the workspace, and you can search by name or choose one from the list. After sending, the bot generates an image with some user information and sends the result to you.
(Some text is still in Portuguese because I haven’t translated everything into English yet. ;-;)
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.