Skip to content

Commit

Permalink
Slack now supports channel names with 80 chars (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
milesbxf committed Aug 15, 2019
1 parent 9747a8b commit 2d58f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion response/slack/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def rename_channel(self, channel_id, new_name):
if not (new_name.startswith("inc-") or new_name.startswith("#inc-")):
prefix = "inc-"

new_name = slugify(f"{prefix}{new_name}", max_length=21)
new_name = slugify(f"{prefix}{new_name}", max_length=80)

return self.api_call("channels.rename", channel=channel_id, name=new_name)

Expand Down

0 comments on commit 2d58f7c

Please sign in to comment.