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

invalid_arguments response when deleting messages #73

Open
sgratzl opened this issue Apr 28, 2020 · 0 comments
Open

invalid_arguments response when deleting messages #73

sgratzl opened this issue Apr 28, 2020 · 0 comments
Assignees

Comments

@sgratzl
Copy link
Owner

sgratzl commented Apr 28, 2020

Problem:

Channel messages are not being deleted when the script is performed. Results in invalid_arguments error.

example:

Failed to delete (invalid_arguments)->
{   'client_msg_id': 'XXX',
    'team': 'XXX',
    'text': 'XXX',
    'ts': '1541698411.011700',
    'type': 'message',
    'user': 'XXX'
}

Solution:

Slack chat.delete usually requires argument as_user=True

so add the command line argument: --as_user

--as_user            Pass true to delete the message as the authed user. Bot
                       users in this context are considered authed users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant