From e5f5054d1b398fe45d00e1359b32130d49a5584d Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Sat, 10 Nov 2018 14:08:45 +0100 Subject: Remove obsolete error handler. --- bot/cogs/tags.py | 24 ------------------------ 1 file changed, 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. -- cgit v1.2.3