Sopur / Discord-user-bots

Working discord user bots library.
MIT License
81 stars 35 forks source link

Slash commands to bots #40

Closed CyberNinja2007 closed 1 year ago

CyberNinja2007 commented 1 year ago

Hello everyone! I'm trying to implement the using of the slash commands with this library, but I just can't. I can recieve an event of the creating the chat input commands, but I'd like to send them into the chat. For example, I'd like to send to the chat smt'h like this : "/ping msg: Pong?" And the bot should answer on that command. I just can't find what should I do except the filling the content in the chat.send() method.

CyberNinja2007 commented 1 year ago

Ok, I'm coped with it with the client.fetch_request() method, I looked up in a web version of discord what is going on while the user starts interactions with the bot and just sent this request througth the client.