PyDrocsid.command_edit ¶
handle_delete
async
¶
handle_delete(bot: Bot, channel_id: int, message_id: int) -> None
Delete linked bot responses of a command message.
Source code in PyDrocsid/command_edit.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
|
handle_edit
async
¶
handle_edit(bot: Bot, message: Message) -> None
Delete linked bot responses of a command message and execute new command.
Source code in PyDrocsid/command_edit.py
34 35 36 37 38 39 40 41 42 43 |
|
link_response
async
¶
link_response(msg: Message | Context[Bot], *response_messages: Message) -> None
Create a link from message to a given list of bot responses and add it to redis.
Source code in PyDrocsid/command_edit.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|