Is there a way to set something like an incoming webhook for a whole team?
I have a javascript, that should post something to a certain channel contained in a certain Team, but to see in which channel it should be posted, I'd need to get a List of all channels, and since the channels change every month, I can't programm the incoming webhooks statically in the javascript. Is there a possibiltiy to have a javascript query the list of channels in a team so I could compare channel names and let it post into the right channel every time?
Normally I'd say I'd probably need to create a new bot from scratch, but the framework is already in place in my workplace and I'm supposed to use what's already here, which is basically one bot that gets a message and sends a response. Now I'd need to make one that doesn't get a message, but can access teams, query the channels and then send a message. Is that even possible with "just" webhooks?
THanks in advance for any help on this.