Skip to content

Commit bbef578

Browse files
minor: make _kind part of the public api
1 parent 0f6fdcd commit bbef578

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modmail/utils/responses.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async def send_general_response(
7070
embed: discord.Embed = _UNSET,
7171
colour: discord.Colour = None,
7272
title: str = None,
73-
_kind: typing.Literal["general", "affirmative", "negatory"] = "general",
73+
tag_as: typing.Literal["general", "affirmative", "negatory"] = "general",
7474
**kwargs,
7575
) -> discord.Message:
7676
"""
@@ -84,7 +84,7 @@ async def send_general_response(
8484
if isinstance(channel, commands.Context): # pragma: nocover
8585
channel = channel.channel
8686

87-
logger.debug(f"Requested to send {_kind} response message to {channel!s}. Response: {response!s}")
87+
logger.debug(f"Requested to send {tag_as} response message to {channel!s}. Response: {response!s}")
8888

8989
if embed is None:
9090
if message is None:
@@ -132,7 +132,7 @@ async def send_positive_response(
132132
channel=channel,
133133
response=response,
134134
colour=colour,
135-
_kind="affirmative",
135+
tag_as="affirmative",
136136
**kwargs,
137137
)
138138

@@ -161,6 +161,6 @@ async def send_negatory_response(
161161
channel=channel,
162162
response=response,
163163
colour=colour,
164-
_kind="negatory",
164+
tag_as="negatory",
165165
**kwargs,
166166
)

0 commit comments

Comments
 (0)