Comments (5)
Hi,
could you show what exact command you use?
slackr -r "@phil Kurth" test123
should work, but never really tested with a handle with a space in it.
from slackr.
Ok, after testing this on a clean new slack sub, it turns out the new @handles with spaces
format does not work with webhooks.
I also noticed that the handle (display name) was not required to set directly, and the default was set to @slack1
. I changed that first to something with space, then removed it (since it's optional) and set a full name with a space in it.
The result with the provided curl post example from the webhooks integration page:
$ curl -X POST --data-urlencode "payload={\"channel\": \"@A. Name\", \"username\": \"webhookbot\", \"text\": \"This is posted to @A. Name and comes from a bot named webhookbot.\", \"icon_emoji\": \":ghost:\"}" https://hooks.slack.com/services/XXX/YYY/ZZZ
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 274 100 17 100 257 32 484 --:--:-- --:--:-- --:--:-- 532
channel_not_found
When i checked the webhook's settings i noticed that @slack1
was still available, and setting it as the channel property for the message still works.
This might just be something undocumented, but i couldn't find anything about this, or where this can be changed.
I contacted slack support about this, and will update here when it's answered.
For now as i see you have two options: set a display name without a space (or other special char), or check the integration channel settings to see what is your "old" type handle.
from slackr.
Howdy,
Thanks for digging into this. Checking the integration, as you suggested, gave me the correct @handle and the notification is now working.
Cheers!
Phil
from slackr.
Np. Depending on the response from slack support, i might create a wiki page later.
Closing this for now.
👋
from slackr.
Hi,
just here to follow up on this.
Slack support was very kind and made it clear, that the recent changes to user name / display name are the first steps in phasing out @username which can be found / changed here: https://my.slack.com/account/settings#username
It is recommended to use a slack "channel-like id" as recipient to make it future proof.
I put all the important details on the wiki page here: https://github.com/a-sync/slackr/wiki#important
gl
from slackr.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slackr.