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

dnd.setSnooze indefinitely does not seem to work #112

@jhp0621

Description

@jhp0621

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' ]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions