dshellInterpreter 0.1.24__py3-none-any.whl → 0.1.25__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of dshellInterpreter might be problematic. Click here for more details.

@@ -42,12 +42,12 @@ async def dshell_send_message(ctx: Message, message=None, delete=None, channel=N
42
42
  return sended_message.id
43
43
 
44
44
 
45
- async def dshell_delete_message(ctx: Message, message, reason=None, delay=0):
45
+ async def dshell_delete_message(ctx: Message, message=None, reason=None, delay=0):
46
46
  """
47
47
  Deletes a message
48
48
  """
49
49
 
50
- delete_message = ctx.channel.get_partial_message(message) # builds a reference to the message (even if it doesn't exist)
50
+ delete_message = ctx if message is None else ctx.channel.get_partial_message(message) # builds a reference to the message (even if it doesn't exist)
51
51
 
52
52
  if delay > 3600:
53
53
  raise Exception(f'The message deletion delay is too long! ({delay} seconds)')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dshellInterpreter
3
- Version: 0.1.24
3
+ Version: 0.1.25
4
4
  Summary: A Discord bot interpreter for creating custom commands and automations.
5
5
  Home-page: https://github.com/BOXERRMD/Dshell_Interpreter
6
6
  Author: Chronos
@@ -2,7 +2,7 @@ Dshell/__init__.py,sha256=UPvXnewe_8FX9aoevMA78UN1k8AY-u8LTY3vEVxaDxw,72
2
2
  Dshell/DISCORD_COMMANDS/__init__.py,sha256=unbZE4sxFCbUQ4Qptr1BhWu-nwhvI2oRzcDLtRmX6Ug,92
3
3
  Dshell/DISCORD_COMMANDS/dshell_channel.py,sha256=_qHfhVaeXLQMI926AJI3uYpjDXxVNF3sZ84EwWU-jz0,6450
4
4
  Dshell/DISCORD_COMMANDS/dshell_member.py,sha256=4cmpcu9RGHVUOGcF9pSnnxh7kEJQWAel4BBQ6Vicvbs,3126
5
- Dshell/DISCORD_COMMANDS/dshell_message.py,sha256=OPyKWKyGRdTB9KkgPW-WcxnPjNrDlJLNjgJm_KeHkD8,4427
5
+ Dshell/DISCORD_COMMANDS/dshell_message.py,sha256=L5upeKAsski5bNjQTwzMNc2fVnUoz5_9TitQ5qJMuF0,4460
6
6
  Dshell/_DshellInterpreteur/__init__.py,sha256=xy5-J-R3YmY99JF3NBHTRRLsComFxpjnCA5xacISctU,35
7
7
  Dshell/_DshellInterpreteur/dshell_interpreter.py,sha256=5TzoiFZWXKBKdLmUZrAqSoScAffp5qrlqFQZ0UMuvvk,19916
8
8
  Dshell/_DshellParser/__init__.py,sha256=ONDfhZMvClqP_6tE8SLjp-cf3pXL-auQYnfYRrHZxC4,56
@@ -12,8 +12,8 @@ Dshell/_DshellTokenizer/__init__.py,sha256=LIQSRhDx2B9pmPx5ADMwwD0Xr9ybneVLhHH8q
12
12
  Dshell/_DshellTokenizer/dshell_keywords.py,sha256=10VctszIRg8AX5Nsr7kwRIjdwzUgTfrrJYbD7QfYR5s,4253
13
13
  Dshell/_DshellTokenizer/dshell_token_type.py,sha256=pWzvmj6EFGkDwNHooOAjdyysi1vZRVEostFIZSW1Ais,1483
14
14
  Dshell/_DshellTokenizer/dshell_tokenizer.py,sha256=a4HJdeIT3HP0a5ekUwq5Nb9Wohnjk5A44yGEneCUBjQ,7020
15
- dshellinterpreter-0.1.24.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
16
- dshellinterpreter-0.1.24.dist-info/METADATA,sha256=Rof-lgx_E7h2BTbQ0wi3aLijbjS-vJFUph_0YPV9qcQ,1096
17
- dshellinterpreter-0.1.24.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
- dshellinterpreter-0.1.24.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
19
- dshellinterpreter-0.1.24.dist-info/RECORD,,
15
+ dshellinterpreter-0.1.25.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
16
+ dshellinterpreter-0.1.25.dist-info/METADATA,sha256=mHOnOkPg00JKNG1J9ku8d6RehNiUJqzvkQD74vsrnw8,1096
17
+ dshellinterpreter-0.1.25.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
+ dshellinterpreter-0.1.25.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
19
+ dshellinterpreter-0.1.25.dist-info/RECORD,,