Skip to content

Commit 0c66d31

Browse files
committed
Lower no .respond() called before .send() logger message to INFO
1 parent 1585043 commit 0c66d31

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

discord_slash/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ async def send(self,
149149
if isinstance(content, int) and 2 <= content <= 5:
150150
raise error.IncorrectFormat("`.send` Method is rewritten at Release 1.0.9. Please read the docs and fix all the usages.")
151151
if not self.sent:
152-
self.logger.warning(f"At command `{self.name}`: It is highly recommended to call `.respond()` first!")
152+
self.logger.info(f"At command `{self.name}`: It is recommended to call `.respond()` first!")
153153
await self.respond(eat=hidden)
154154
if hidden:
155155
if embeds or embed:

docs/migrate_to_109.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ After:
3030
.. code-block:: python
3131
3232
# Case 1
33-
await ctx.respond()
33+
await ctx.respond() # This is optional, but still recommended to.
3434
msg = await ctx.send("Hello, World! This is initial message.")
3535
await msg.edit(content="Or nevermind.")
3636
await msg.delete()
3737
await ctx.send("This is followup message.")
3838
3939
# Case 2
40-
await ctx.respond(eat=True)
40+
await ctx.respond(eat=True) # Again, this is optional, but still recommended to.
4141
await ctx.send("This is secret message.", hidden=True)
4242
4343
Objects of the command invoke
@@ -73,7 +73,7 @@ Before:
7373

7474
.. code-block:: python
7575
76-
slash = SlashContext(..., auto_register=True, auto_delete=True)
76+
slash = SlashContext(..., auto_register=True, auto_delete=True) # Either one can be false.
7777
7878
After:
7979

0 commit comments

Comments
 (0)