đŁ Webhook
To get your Webhook, follow these steps:
- Sign in to your Slack account.
- Go your Webhook Settings
- Choose the Slack channel where you want to send messages from the webhook.
- Click on âAdd Incoming WebHooks Integrationâ.
- Copy the webhook URL displayed.
- Click on âSave Settingsâ.
đ OAuth Token
Getting the token
- First, log in to your Slack account.
- Go to your App-Settings and click on âCreate New Appâ.
- Enter a name for your app and select the Slack workspace where you want to use the app, then click on âCreate Appâ.
- Navigate to the âOAuth & Permissionsâ section in the left sidebar.
- Scroll down to the âScopesâ section, add necessary OAuth scopes to request the desired permissions. We’ll need these scopes:
chat:write
channel:join
files:write
- Navigate back to the “Basic Information” tab and click on the green button âInstall to Workspaceâ at the top of the page.
- You will be prompted to review and approve the permissions for your app. Click on âAllowâ.
- After clicking âAllowâ, you will be redirected. Navigate back to the âOAuth & Permissionsâ tab, and your new Bot OAuth token will be displayed in the âOAuth Tokens for Your Workspaceâ section.
- Once you test-send a report in Unity, the bot will automatically attempt to join the channel.
Getting the channel ID
- in Slack, right click on the channel you want to post to. Select “Channel details”
- On the bottom of the page, in small and greyed out, you’ll see the Channel ID displayed.
âď¸ Input in Unity
After obtaining your Webhook URL or OAuth Token, you need to input these details into Unity.
- In Unity, select the BugTrackingManager GameObject.
- Scroll down to the âWhere to send it?â Section
- Select âSlackâ
- In the Inspector window, you will see fields for âWebhookâ and âOAuth Tokenâ.
- Enter your Webhook URL or OAuth Token into the respective fields.
- Create a Test Report