aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-11-10 14:08:45 +0100
committerGravatar Johannes Christ <[email protected]>2018-11-10 14:08:45 +0100
commite5f5054d1b398fe45d00e1359b32130d49a5584d (patch)
tree66ef50ae51f07bddc8e949cb48775095fb7f15bc
parentFix a typo. (diff)
Remove obsolete error handler.
-rw-r--r--bot/cogs/tags.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/bot/cogs/tags.py b/bot/cogs/tags.py
index 578f5e7c8..9507632af 100644
--- a/bot/cogs/tags.py
+++ b/bot/cogs/tags.py
@@ -89,30 +89,6 @@ class Tags:
self.tag_cooldowns = {}
self.headers = {"Authorization": f"Token {Keys.site_api}"}
- async def post_tag_data(self, tag_name: str, tag_content: str, image_url: Optional[str]) -> dict:
- """
- Send some tag_data to our API to have it saved in the database.
-
- :param tag_name: The name of the tag to create or edit.
- :param tag_content: The content of the tag.
- :param image_url: The image URL of the tag, can be `None`.
- :return: json response from the API in the following format:
- {
- 'success': bool
- }
- """
-
- params = {
- 'tag_name': tag_name,
- 'tag_content': tag_content,
- 'image_url': image_url
- }
-
- response = await self.bot.http_session.post(URLs.site_tags_api, headers=self.headers, json=params)
- tag_data = await response.json()
-
- return tag_data
-
async def delete_tag_data(self, tag_name: str) -> dict:
"""
Delete a tag using our API.