dshellInterpreter 0.1.14__py3-none-any.whl → 0.1.15__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.

@@ -116,11 +116,11 @@ async def dshell_research_regex_in_content(ctx: Message, regex, content):
116
116
 
117
117
  return True
118
118
 
119
- async def dshell_add_reactions(ctx: Message, reactions, message_id=None):
119
+ async def dshell_add_reactions(ctx: Message, reactions, message=None):
120
120
  """
121
121
  Adds reactions to a message
122
122
  """
123
- message = ctx.channel if message_id is None else ctx.channel.get_partial_message(message_id) # builds a reference to the message (even if it doesn't exist)
123
+ 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)
124
124
 
125
125
  if isinstance(reactions, str):
126
126
  reactions = [reactions]
@@ -130,11 +130,11 @@ async def dshell_add_reactions(ctx: Message, reactions, message_id=None):
130
130
 
131
131
  return message.id
132
132
 
133
- async def dshell_remove_reactions(ctx: Message, reactions, message_id=None):
133
+ async def dshell_remove_reactions(ctx: Message, reactions, message=None):
134
134
  """
135
135
  Removes reactions from a message
136
136
  """
137
- message = ctx.channel if message_id is None else ctx.channel.get_partial_message(message_id) # builds a reference to the message (even if it doesn't exist)
137
+ 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)
138
138
 
139
139
  if isinstance(reactions, str):
140
140
  reactions = [reactions]
@@ -4,7 +4,7 @@ from typing import TypeVar, Union, Any, Optional, Callable
4
4
 
5
5
 
6
6
  from discord import AutoShardedBot, Embed, Colour, PermissionOverwrite, Permissions, Guild, Member, Role, Message
7
- from discord.abc import GuildChannel, PrivateChannel
7
+ from discord.abc import PrivateChannel
8
8
 
9
9
  from .._DshellParser.ast_nodes import *
10
10
  from .._DshellParser.dshell_parser import parse
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dshellInterpreter
3
- Version: 0.1.14
3
+ Version: 0.1.15
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,9 +2,9 @@ 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=3tOVZhfFSie_Kjv8HhgsPfzWQuppLbZ4elmf04KfvrM,5865
4
4
  Dshell/DISCORD_COMMANDS/dshell_member.py,sha256=4cmpcu9RGHVUOGcF9pSnnxh7kEJQWAel4BBQ6Vicvbs,3126
5
- Dshell/DISCORD_COMMANDS/dshell_message.py,sha256=T4MeAD_AnE5HFUlE9qMWbQtznR9-nJgGZ72rcA1K2_8,4415
5
+ Dshell/DISCORD_COMMANDS/dshell_message.py,sha256=Q0LjP_4f-VX31Q0T2oix387qAJ0CQGawqCbMGCiUbM8,4381
6
6
  Dshell/_DshellInterpreteur/__init__.py,sha256=xy5-J-R3YmY99JF3NBHTRRLsComFxpjnCA5xacISctU,35
7
- Dshell/_DshellInterpreteur/dshell_interpreter.py,sha256=LFysDRsM-4w14l6EzIkJJYLS3ZNjeU_e4tMx2TURnjM,17650
7
+ Dshell/_DshellInterpreteur/dshell_interpreter.py,sha256=zvJ6zDgbtyQLVRTSsUrAMt3wk6Zf8ZgLXgeXxY7HL9g,17636
8
8
  Dshell/_DshellParser/__init__.py,sha256=ONDfhZMvClqP_6tE8SLjp-cf3pXL-auQYnfYRrHZxC4,56
9
9
  Dshell/_DshellParser/ast_nodes.py,sha256=o21a9Rdgq00koQSX8uj1uKMVdEHsgJK55bgaqK8bZAM,14447
10
10
  Dshell/_DshellParser/dshell_parser.py,sha256=87VWNHOeLfNTieie4oKPYw9ieqtqFOVU6tEV9h1VVzI,14657
@@ -12,8 +12,8 @@ Dshell/_DshellTokenizer/__init__.py,sha256=LIQSRhDx2B9pmPx5ADMwwD0Xr9ybneVLhHH8q
12
12
  Dshell/_DshellTokenizer/dshell_keywords.py,sha256=1aq5z23AFJ1V4th_3qOJrAiEKcMH7gpZJn6n4ln9OQA,4234
13
13
  Dshell/_DshellTokenizer/dshell_token_type.py,sha256=Q8Jpil9S3-Tin1sXEHW7cnNdDdUh7Fiv8_lki0OWC0E,1443
14
14
  Dshell/_DshellTokenizer/dshell_tokenizer.py,sha256=DSGiSHj9jLqP7RkC-8WFRqFvitJ7P4b7p0CJn4ek7hE,5831
15
- dshellinterpreter-0.1.14.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
16
- dshellinterpreter-0.1.14.dist-info/METADATA,sha256=aRkW5zI8wXn4AYyEGc83BpDd4M5QRG2eeqYrr_BDwS4,1096
17
- dshellinterpreter-0.1.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
- dshellinterpreter-0.1.14.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
19
- dshellinterpreter-0.1.14.dist-info/RECORD,,
15
+ dshellinterpreter-0.1.15.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
16
+ dshellinterpreter-0.1.15.dist-info/METADATA,sha256=MGsckyWIhOVDxV7e2wzJQS9lltp7iVLKdhoPvyqltOA,1096
17
+ dshellinterpreter-0.1.15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
+ dshellinterpreter-0.1.15.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
19
+ dshellinterpreter-0.1.15.dist-info/RECORD,,