Created a new /edit_message command to edit previously sent messages from the bot. The command must be run in the same channel as the desired message you wish to edit was in.
Issues
Closes #295
Type of change
Select one or more of the following:
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Other (describe below)
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. List any edge cases you tested.
If you come up with any edge cases you didn't test while writing this PR, cancel the PR and test again.
[ ] Correctly editing a sent message
[ ] Run the bot in the CSE Testing Server
[ ] Run the /edit_message command with the correct message_id
[ ] Send the new content of the message
[ ] See the original message get edited and the user message was deleted
[ ] Providing an invalid message_id
[ ] Run the bot in the CSE Testing Server
[ ] Run /edit_message command with an incorrect or not-found message_id
[ ] See the bot errors and a log is created in #bot-logs
[ ] Trying to edit a non-bot message
[ ] Run the bot in the CSE Testing Server
[ ] Run /edit_message with the message_id of a message sent by another user
[ ] See the bot errors and a log is created in #bot-logs
[ ] Cancel the process of editing a message
[ ] Run the bot in the CSE Testing Server
[ ] Run /edit_message with a correct message_id
[ ] Send 'cancel' as the message
[ ] See the command execution was terminated
[ ] Timeout while editing a message
[ ] Run the bot in the CSE Testing Server
[ ] Run /edit_message with a correct message_id
[ ] Don't send a message and wait 60s
[ ] See the execution was terminated and an error message appeared
Checklist:
[x] All local commits have been pushed to remote
[x] All changes on the base branch have been merged into this branch, either by rebase or merge
[x] My code is PEP-8 compliant (excluding maximum line length, keep that to 100ish characters)
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
Description
Created a new
/edit_message
command to edit previously sent messages from the bot. The command must be run in the same channel as the desired message you wish to edit was in.Issues
Closes #295
Type of change
Select one or more of the following:
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. List any edge cases you tested. If you come up with any edge cases you didn't test while writing this PR, cancel the PR and test again.
/edit_message
command with the correctmessage_id
message_id
/edit_message
command with an incorrect or not-foundmessage_id
#bot-logs
/edit_message
with themessage_id
of a message sent by another user#bot-logs
/edit_message
with a correctmessage_id
/edit_message
with a correctmessage_id
Checklist: