Repository navigation
feat: add apps.managed.permissions.set method #2052
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2570,6 +2570,25 @@ def apps_icon_set( | |
| return self.api_call("apps.icon.set", files={"file": file}, data=kwargs) | ||
| return self.api_call("apps.icon.set", params=kwargs) | ||
|
|
||
| def apps_managed_permissions_set( | ||
| self, | ||
| *, | ||
| app_id: str, | ||
| permissions: str, | ||
| **kwargs, | ||
| ) -> SlackResponse: | ||
| """Set who can interact with a managed app. | ||
|
|
||
| https://docs.slack.dev/reference/methods/apps.managed.permissions.set | ||
|
|
||
| Args: | ||
| app_id: Encoded ID of the managed app to configure | ||
| permissions: Who can interact with the app. Use everyone to allow all members, or app_owner to restrict access | ||
| to the app's owner. | ||
| """ | ||
| kwargs.update({"app_id": app_id, "permissions": permissions}) | ||
| return self.api_call("apps.managed.permissions.set", params=kwargs) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💯 praise: Same keyword-only pass-through shape as the sibling |
||
|
|
||
| def apps_uninstall( | ||
| self, | ||
| *, | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.