slack_transfer.functions.common.test_connection#

slack_transfer.functions.common.test_connection(client: WebClient) None[source]#

test connections to slack.

This test including common scope among all client. The token set to the client use this method requires the following scope:

  • channels:history

  • channels:join

  • channels:read

  • files:read

  • groups:history

  • groups:read

If one of the scope is missing, this method rise an error. Those tests are performed step by step. It means that missing scope appears not at once.

Parameters

client (WebClient) – client. If use this via any Client Class, self is automatically set. Thus, ignore this.