Code Monkey home page Code Monkey logo

Comments (7)

freynolds avatar freynolds commented on August 19, 2024 7

Channel Override
Incoming webhooks have a default channel, but it can be overridden in your JSON payload. A public channel can be specified with "channel": "#other-channel", and a Direct Message with "channel": "@username".

When creating a webhook

from laravel-slack.

tigran-cl avatar tigran-cl commented on August 19, 2024 2

@gianemi2 it is possible, I ended up forking this package so that I can point a channel to a webhook url in the config file. My only use case was to send to different channels though, I haven't tested sending to users and other stuff so use at your own risk... https://github.com/tigran-cl/laravel-slack

from laravel-slack.

henriqueramos avatar henriqueramos commented on August 19, 2024 1

Seems Slack removed this option.

https://api.slack.com/custom-integrations/incoming-webhooks#migrating_from_legacy_incoming_webhooks

from laravel-slack.

roerjo avatar roerjo commented on August 19, 2024 1

@freynolds that is a legacy option and does not work with new integrations.

https://api.slack.com/custom-integrations/incoming-webhooks

from laravel-slack.

gianemi2 avatar gianemi2 commented on August 19, 2024

Is not possible to add multiple slack incoming webhooks?

from laravel-slack.

tranghaviet avatar tranghaviet commented on August 19, 2024

Nice work. @tigran-cl Can you make a pull request?

from laravel-slack.

connecteev avatar connecteev commented on August 19, 2024

@gianemi2 it is possible, I ended up forking this package so that I can point a channel to a webhook url in the config file. My only use case was to send to different channels though, I haven't tested sending to users and other stuff so use at your own risk... https://github.com/tigran-cl/laravel-slack

@tigran-cl Given that Slack only allows you to send to one channel (or user) per webhook, this package needs the ability to configure multiple webhook URLs, so that I can send a slack message to #my-channel or @my-user using one package.
Can you please create a pull request?

from laravel-slack.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.