Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

dnd.setSnooze indefinitely does not seem to work #112

Open
jhp0621 opened this issue Nov 15, 2022 · 0 comments
Open

dnd.setSnooze indefinitely does not seem to work #112

jhp0621 opened this issue Nov 15, 2022 · 0 comments

Comments

@jhp0621
Copy link

jhp0621 commented Nov 15, 2022

Hello,

I am calling dnd.setSnooze with argument is_indefinite: true (+ user token that has dnd:write scope enabled), and although I'm not getting any errors, the response has snooze_enabled: false which I expect it to be true.. Is there a way to turn on DND mode for the user indefinitely?

app.client.dnd
   .setSnooze({
           token: process.env.SLACK_USER_TOKEN,
           is_indefinite: true,
    }).then(res => console.log(res))

res:

{
  ok: true,
  snooze_enabled: false,
  response_metadata: {
    scopes: [
      'identify',
      'users:read',
      'users:read.email',
      'dnd:read',
      'dnd:write'
    ],
    acceptedScopes: [ 'dnd:write' ]
  }
}
@jhp0621 jhp0621 changed the title setSnooze indefinitely does not seem to work dnd.setSnooze indefinitely does not seem to work Nov 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant