dshellInterpreter 0.1.18__py3-none-any.whl → 0.1.20__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
  """
@@ -110,12 +111,12 @@ async def dshell_edit_text_channel(ctx: Message,
110
111
  if channel_to_edit is None:
111
112
  raise Exception(f"Channel {channel} not found !")
112
113
 
113
- await channel_to_edit.edit(name=name,
114
- position=position,
115
- slowmode_delay=slowmode,
116
- topic=topic,
117
- nsfw=nsfw,
118
- overwrites=permission,
114
+ await channel_to_edit.edit(name=name if name is not None else channel_to_edit.name,
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
@@ -136,10 +137,10 @@ async def dshell_edit_voice_channel(ctx: Message,
136
137
  if channel_to_edit is None:
137
138
  raise Exception(f"Channel {channel} not found !")
138
139
 
139
- await channel_to_edit.edit(name=name,
140
- position=position,
141
- bitrate=bitrate,
142
- overwrites=permission,
140
+ await channel_to_edit.edit(name=name if name is not None else channel_to_edit.name,
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dshellInterpreter
3
- Version: 0.1.18
3
+ Version: 0.1.20
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,6 +1,6 @@
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=_qHfhVaeXLQMI926AJI3uYpjDXxVNF3sZ84EwWU-jz0,6450
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
@@ -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=Q8Jpil9S3-Tin1sXEHW7cnNdDdUh7Fiv8_lki0OWC0E,1443
14
14
  Dshell/_DshellTokenizer/dshell_tokenizer.py,sha256=E5dCrpbLVgME1moz2zC_X4w4HvV6PrYbK5_pwD3gYzw,5831
15
- dshellinterpreter-0.1.18.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
16
- dshellinterpreter-0.1.18.dist-info/METADATA,sha256=liwRiFo4gIA4kduQvjz3QlpDypsJ0rVlUz-NW0aIeVM,1096
17
- dshellinterpreter-0.1.18.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
- dshellinterpreter-0.1.18.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
19
- dshellinterpreter-0.1.18.dist-info/RECORD,,
15
+ dshellinterpreter-0.1.20.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
16
+ dshellinterpreter-0.1.20.dist-info/METADATA,sha256=gzoZ7SdN4R-hO9coF9BFuARfHK39ag2zr603IQLAtUE,1096
17
+ dshellinterpreter-0.1.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
+ dshellinterpreter-0.1.20.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
19
+ dshellinterpreter-0.1.20.dist-info/RECORD,,