We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d29271b commit 8ba13efCopy full SHA for 8ba13ef
1 file changed
pybot/endpoints/api/slack_api.py
@@ -39,15 +39,16 @@ async def invite(request: SlackApiRequest, app: SirBot):
39
40
:return: The request response from slack
41
"""
42
- slack = app.plugins["admin_slack"].api
+ admin_slack = app.plugins["admin_slack"].api
43
+ slack = app.plugins["slack"].api
44
body = await request.json()
45
46
if "email" not in body:
47
return {"error": "Must contain `email` JSON value"}
48
email = body["email"]
49
50
try:
- response = await slack.query(
51
+ response = await admin_slack.query(
52
url=ROOT_URL + "users.admin.invite", data={"email": email}
53
)
54
return response
0 commit comments