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

@@ -98,7 +98,8 @@ async def dshell_edit_text_channel(ctx: Message,
98
98
  name=None,
99
99
  position=MISSING,
100
100
  slowmode=MISSING,
101
- topic=MISSING, nsfw=MISSING,
101
+ topic=MISSING,
102
+ nsfw=MISSING,
102
103
  permission: dict[Union[Member, Role], PermissionOverwrite] = MISSING,
103
104
  reason=None):
104
105
  """
@@ -111,11 +112,11 @@ async def dshell_edit_text_channel(ctx: Message,
111
112
  raise Exception(f"Channel {channel} not found !")
112
113
 
113
114
  await channel_to_edit.edit(name=name,
114
- position=position,
115
- slowmode_delay=slowmode,
116
- topic=topic,
117
- nsfw=nsfw,
118
- overwrites=permission,
115
+ position=position if position is not MISSING else channel_to_edit.position,
116
+ slowmode_delay=slowmode if slowmode is not MISSING else channel_to_edit.slowmode_delay,
117
+ topic=topic if topic is not MISSING else channel_to_edit.topic,
118
+ nsfw=nsfw if nsfw is not MISSING else channel_to_edit.nsfw,
119
+ overwrites=permission if permission is not MISSING else channel_to_edit.overwrites,
119
120
  reason=reason)
120
121
 
121
122
  return channel_to_edit.id
@@ -137,9 +138,9 @@ async def dshell_edit_voice_channel(ctx: Message,
137
138
  raise Exception(f"Channel {channel} not found !")
138
139
 
139
140
  await channel_to_edit.edit(name=name,
140
- position=position,
141
- bitrate=bitrate,
142
- overwrites=permission,
141
+ position=position if position is not MISSING else channel_to_edit.position,
142
+ bitrate=bitrate if bitrate is not MISSING else channel_to_edit.bitrate,
143
+ overwrites=permission if permission is not MISSING else channel_to_edit.overwrites,
143
144
  reason=reason)
144
145
 
145
146
  return channel_to_edit.id
@@ -28,8 +28,7 @@ from .ast_nodes import (ASTNode,
28
28
  from .._DshellTokenizer.dshell_token_type import DshellTokenType as DTT
29
29
  from .._DshellTokenizer.dshell_token_type import Token
30
30
 
31
- if TYPE_CHECKING:
32
- from .._DshellTokenizer import dshell_operators
31
+ from .._DshellTokenizer import dshell_operators
33
32
 
34
33
 
35
34
  def parse(token_lines: list[list[Token]], start_node: ASTNode) -> tuple[list[ASTNode], int]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dshellInterpreter
3
- Version: 0.1.17
3
+ Version: 0.1.19
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
@@ -1,19 +1,19 @@
1
1
  Dshell/__init__.py,sha256=UPvXnewe_8FX9aoevMA78UN1k8AY-u8LTY3vEVxaDxw,72
2
2
  Dshell/DISCORD_COMMANDS/__init__.py,sha256=unbZE4sxFCbUQ4Qptr1BhWu-nwhvI2oRzcDLtRmX6Ug,92
3
- Dshell/DISCORD_COMMANDS/dshell_channel.py,sha256=3tOVZhfFSie_Kjv8HhgsPfzWQuppLbZ4elmf04KfvrM,5865
3
+ Dshell/DISCORD_COMMANDS/dshell_channel.py,sha256=jeaTy9JQSTETtSLDxSyA8M8NwOn6ZsrMaWGnF0Y5ixg,6358
4
4
  Dshell/DISCORD_COMMANDS/dshell_member.py,sha256=4cmpcu9RGHVUOGcF9pSnnxh7kEJQWAel4BBQ6Vicvbs,3126
5
5
  Dshell/DISCORD_COMMANDS/dshell_message.py,sha256=nleLKY12nKzu7CNBa4PBSy9-sz57dE1EgQ8-g10jC5A,4382
6
6
  Dshell/_DshellInterpreteur/__init__.py,sha256=xy5-J-R3YmY99JF3NBHTRRLsComFxpjnCA5xacISctU,35
7
7
  Dshell/_DshellInterpreteur/dshell_interpreter.py,sha256=viZBYDF7rw1Juasu-B4Fc7Kvdm4j_7SGhOeR_DZpL00,19485
8
8
  Dshell/_DshellParser/__init__.py,sha256=ONDfhZMvClqP_6tE8SLjp-cf3pXL-auQYnfYRrHZxC4,56
9
9
  Dshell/_DshellParser/ast_nodes.py,sha256=-zFmSeb6FnvcXd2gB3koy93apVJ-PiCY8PTUFj-_bG8,15307
10
- Dshell/_DshellParser/dshell_parser.py,sha256=aCsIbPlQeQQAAfMr2SCnjRODDLZXtea8os4cA4PW7m4,15548
10
+ Dshell/_DshellParser/dshell_parser.py,sha256=jCnwxY_J-_u1W_tEotQznp4_Y0aeAH4pTcPl6_Fx9f8,15525
11
11
  Dshell/_DshellTokenizer/__init__.py,sha256=LIQSRhDx2B9pmPx5ADMwwD0Xr9ybneVLhHH8qrJWw_s,172
12
12
  Dshell/_DshellTokenizer/dshell_keywords.py,sha256=10VctszIRg8AX5Nsr7kwRIjdwzUgTfrrJYbD7QfYR5s,4253
13
13
  Dshell/_DshellTokenizer/dshell_token_type.py,sha256=Q8Jpil9S3-Tin1sXEHW7cnNdDdUh7Fiv8_lki0OWC0E,1443
14
14
  Dshell/_DshellTokenizer/dshell_tokenizer.py,sha256=E5dCrpbLVgME1moz2zC_X4w4HvV6PrYbK5_pwD3gYzw,5831
15
- dshellinterpreter-0.1.17.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
16
- dshellinterpreter-0.1.17.dist-info/METADATA,sha256=giE1nbyLaHrPQGaxvD7Baf35V1wvSbTKp_OdxpyJKkI,1096
17
- dshellinterpreter-0.1.17.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
- dshellinterpreter-0.1.17.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
19
- dshellinterpreter-0.1.17.dist-info/RECORD,,
15
+ dshellinterpreter-0.1.19.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
16
+ dshellinterpreter-0.1.19.dist-info/METADATA,sha256=rhZa-7lNmWhaMWW3u2qcRaLY7miz71kPjiZgZWbe_VY,1096
17
+ dshellinterpreter-0.1.19.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
+ dshellinterpreter-0.1.19.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
19
+ dshellinterpreter-0.1.19.dist-info/RECORD,,