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

@@ -27,7 +27,7 @@ async def dshell_create_text_channel(ctx: GuildChannel, name, category=None, pos
27
27
  slowmode_delay=slowmode,
28
28
  topic=topic,
29
29
  nsfw=nsfw,
30
- overwrites=permission._values)
30
+ overwrites=permission)
31
31
 
32
32
  return created_channel.id
33
33
 
@@ -281,10 +281,7 @@ class DshellIterator:
281
281
  """
282
282
 
283
283
  def __init__(self, data):
284
- if isinstance(data, ListNode):
285
- self.data = data
286
- else:
287
- self.data = data if isinstance(data, (str, list)) else range(int(data))
284
+ self.data = data if isinstance(data, (str, list, ListNode)) else range(int(data))
288
285
  self.current = 0
289
286
 
290
287
  def __iter__(self):
@@ -376,7 +373,7 @@ class DshellPermissions:
376
373
  target_keys = self.target.keys()
377
374
 
378
375
  if 'members' in target_keys:
379
- for member_id in self.target['members']:
376
+ for member_id in DshellIterator(self.target['members']):
380
377
  member = self.get_member(guild, member_id)
381
378
  permissions[member] = PermissionOverwrite.from_pair(
382
379
  allow=Permissions(permissions=self.target.get('allow', 0)),
@@ -384,7 +381,7 @@ class DshellPermissions:
384
381
  )
385
382
 
386
383
  elif 'roles' in target_keys:
387
- for role_id in self.target['roles']:
384
+ for role_id in DshellIterator(self.target['roles']):
388
385
  role = self.get_role(guild, role_id)
389
386
  permissions[role] = PermissionOverwrite.from_pair(
390
387
  allow=Permissions(permissions=self.target.get('allow', 0)),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dshellInterpreter
3
- Version: 0.1.6
3
+ Version: 0.1.8
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,9 +1,9 @@
1
1
  Dshell/__init__.py,sha256=UPvXnewe_8FX9aoevMA78UN1k8AY-u8LTY3vEVxaDxw,72
2
2
  Dshell/DISCORD_COMMANDS/__init__.py,sha256=s58iMazDXNPDLZ3Hvymh__C5w7lcgEvaYfX0-SHocRo,62
3
- Dshell/DISCORD_COMMANDS/dshell_channel.py,sha256=Vtmp9J-h89cxL46enLWG1GNN7s1jNQgd-ZRvponq49I,2396
3
+ Dshell/DISCORD_COMMANDS/dshell_channel.py,sha256=RmzqXiuwWTbIUV37KtutFsw2uuXNY7HJFtbJCut5rgg,2388
4
4
  Dshell/DISCORD_COMMANDS/dshell_message.py,sha256=FhUo_zpdHJErsAjKyO34SXPdDkwPmE_QSli5svIpI4E,1882
5
5
  Dshell/_DshellInterpreteur/__init__.py,sha256=xy5-J-R3YmY99JF3NBHTRRLsComFxpjnCA5xacISctU,35
6
- Dshell/_DshellInterpreteur/dshell_interpreter.py,sha256=6EzLmV7s8xT0tpg31ZyPieLpNqzB23plPJDcWPwYqv8,15942
6
+ Dshell/_DshellInterpreteur/dshell_interpreter.py,sha256=HL7I6W1IhQUHbOfC3LpDCh4CP5dQTLZgpfqoBl793y4,15895
7
7
  Dshell/_DshellParser/__init__.py,sha256=ONDfhZMvClqP_6tE8SLjp-cf3pXL-auQYnfYRrHZxC4,56
8
8
  Dshell/_DshellParser/ast_nodes.py,sha256=3QyfTGCNeCn2e1QFda1DMiGziLPgGNMnRh5_XyzR8BI,5704
9
9
  Dshell/_DshellParser/dshell_parser.py,sha256=mA8uA-xBhKcfnSKfLfePwI_fD0GrHbj0VBVeJPbcGas,13956
@@ -11,8 +11,8 @@ Dshell/_DshellTokenizer/__init__.py,sha256=LIQSRhDx2B9pmPx5ADMwwD0Xr9ybneVLhHH8q
11
11
  Dshell/_DshellTokenizer/dshell_keywords.py,sha256=wTV89px9bUY4uf0KCnDr356H_dBIVgcPr55L_6-AWdg,3661
12
12
  Dshell/_DshellTokenizer/dshell_token_type.py,sha256=NE-sVloBYtioZpWKnWuO5p0YcObGJZPNaKwc8lWDonQ,999
13
13
  Dshell/_DshellTokenizer/dshell_tokenizer.py,sha256=2tto_gXYj94fLFx99p6nBbtplALT3Ysz9oBwatX9tIA,5788
14
- dshellinterpreter-0.1.6.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
15
- dshellinterpreter-0.1.6.dist-info/METADATA,sha256=x2myoZGTHcsxK6YTTnUTbUMPyVmQSQlX_DR3nT135Hg,1095
16
- dshellinterpreter-0.1.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
- dshellinterpreter-0.1.6.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
18
- dshellinterpreter-0.1.6.dist-info/RECORD,,
14
+ dshellinterpreter-0.1.8.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
15
+ dshellinterpreter-0.1.8.dist-info/METADATA,sha256=Tk6-3yJ8iE7TR9GdRD-o-JeZspsTvMVZwmgA2mxT2Dw,1095
16
+ dshellinterpreter-0.1.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
+ dshellinterpreter-0.1.8.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
18
+ dshellinterpreter-0.1.8.dist-info/RECORD,,