aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-03-21 10:03:27 +0000
committerGravatar Gareth Coles <[email protected]>2018-03-21 10:03:27 +0000
commit656a09a616183ff434411f4f280109413ed7d4a5 (patch)
treee6c51ee781115af523b7d31a936b1703edf95613
parent[ClickUp] Fix errors when task text is too long (diff)
[ClickUp] Allow a hash at the start of a task ID
-rw-r--r--bot/cogs/clickup.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/cogs/clickup.py b/bot/cogs/clickup.py
index 079678aa4..8bae30378 100644
--- a/bot/cogs/clickup.py
+++ b/bot/cogs/clickup.py
@@ -131,6 +131,9 @@ class ClickUp:
Get a task and return information specific to it
"""
+ if task_id.startswith("#"):
+ task_id = task_id[1:]
+
embed = Embed(colour=Colour.blurple())
embed.set_author(
name=f"ClickUp Task: #{task_id}",