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.
- Dshell/DISCORD_COMMANDS/dshell_message.py +4 -4
- Dshell/_DshellInterpreteur/dshell_interpreter.py +1 -1
- {dshellinterpreter-0.1.14.dist-info → dshellinterpreter-0.1.15.dist-info}/METADATA +1 -1
- {dshellinterpreter-0.1.14.dist-info → dshellinterpreter-0.1.15.dist-info}/RECORD +7 -7
- {dshellinterpreter-0.1.14.dist-info → dshellinterpreter-0.1.15.dist-info}/WHEEL +0 -0
- {dshellinterpreter-0.1.14.dist-info → dshellinterpreter-0.1.15.dist-info}/licenses/LICENSE +0 -0
- {dshellinterpreter-0.1.14.dist-info → dshellinterpreter-0.1.15.dist-info}/top_level.txt +0 -0
|
@@ -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,
|
|
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
|
|
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,
|
|
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
|
|
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
|
|
7
|
+
from discord.abc import PrivateChannel
|
|
8
8
|
|
|
9
9
|
from .._DshellParser.ast_nodes import *
|
|
10
10
|
from .._DshellParser.dshell_parser import parse
|
|
@@ -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=
|
|
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=
|
|
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.
|
|
16
|
-
dshellinterpreter-0.1.
|
|
17
|
-
dshellinterpreter-0.1.
|
|
18
|
-
dshellinterpreter-0.1.
|
|
19
|
-
dshellinterpreter-0.1.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|