Skip to content

Commit ccdfe4d

Browse files
author
mahtoid
committed
quick_link and link deprecation warning
1 parent 4c5565d commit ccdfe4d

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,3 +167,6 @@ bot.py
167167
chat_exporter/config.py
168168
*.fs*
169169
*.sqlite
170+
171+
.idea/*
172+
.idea\*

chat_exporter/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
AttachmentToLocalFileHostHandler,
99
AttachmentToDiscordChannelHandler)
1010

11-
__version__ = "2.8.1"
11+
__version__ = "2.8.2"
1212

1313
__all__ = (
1414
export,

chat_exporter/chat_exporter.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import datetime
22
import io
3+
import warnings
34
from typing import List, Optional
45

56
from chat_exporter.construct.transcript import Transcript
@@ -155,6 +156,8 @@ async def quick_link(
155156
:param message: discord.Message
156157
:return: discord.Message (posted link)
157158
"""
159+
warnings.warn("quick_link is deprecated and will be removed along with the site on the 31st March.", DeprecationWarning, stacklevel=2)
160+
158161
embed = discord.Embed(
159162
title="Transcript Link",
160163
description=(
@@ -175,4 +178,5 @@ async def link(
175178
:param message: discord.Message
176179
:return: string (link: https://mahto.id/chat-exporter?url=ATTACHMENT_URL)
177180
"""
181+
warnings.warn("link is deprecated and will be removed along with the site on the 31st March.", DeprecationWarning, stacklevel=2)
178182
return "https://mahto.id/chat-exporter?url=" + message.attachments[0].url

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "chat_exporter"
77
description = "A simple Discord chat exporter for Python Discord bots."
8-
version = "2.8.1"
8+
version = "2.8.2"
99
readme = "README.md"
1010
authors = [
1111
{ name="mahtoid", email="info@mahto.id" }

0 commit comments

Comments
 (0)