We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
link_data
1 parent 3f5ddaf commit 1111938Copy full SHA for 1111938
cogs/streamlinks/cog.py
@@ -135,6 +135,9 @@ async def streamlinks_add(
135
user = await self.get_user_string(user)
136
137
link_data = self.get_link_data(link)
138
+ if not link_data:
139
+ link_data = {"image": None, "upload_date": None}
140
+
141
if date is not None:
142
link_data["upload_date"] = datetime.strptime(date, "%d.%m.%Y")
143
else:
0 commit comments