dshellInterpreter 0.2.4.2__tar.gz → 0.2.4.3__tar.gz

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.

Files changed (26) hide show
  1. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/Dshell/DISCORD_COMMANDS/dshell_role.py +6 -4
  2. {dshellinterpreter-0.2.4.2/dshellInterpreter.egg-info → dshellinterpreter-0.2.4.3}/PKG-INFO +1 -1
  3. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3/dshellInterpreter.egg-info}/PKG-INFO +1 -1
  4. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/setup.py +1 -1
  5. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/Dshell/DISCORD_COMMANDS/__init__.py +0 -0
  6. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/Dshell/DISCORD_COMMANDS/dshell_channel.py +0 -0
  7. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/Dshell/DISCORD_COMMANDS/dshell_member.py +0 -0
  8. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/Dshell/DISCORD_COMMANDS/dshell_message.py +0 -0
  9. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/Dshell/DISCORD_COMMANDS/dshell_pastbin.py +0 -0
  10. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/Dshell/_DshellInterpreteur/__init__.py +0 -0
  11. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/Dshell/_DshellInterpreteur/dshell_interpreter.py +0 -0
  12. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/Dshell/_DshellParser/__init__.py +0 -0
  13. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/Dshell/_DshellParser/ast_nodes.py +0 -0
  14. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/Dshell/_DshellParser/dshell_parser.py +0 -0
  15. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/Dshell/_DshellTokenizer/__init__.py +0 -0
  16. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/Dshell/_DshellTokenizer/dshell_keywords.py +0 -0
  17. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/Dshell/_DshellTokenizer/dshell_token_type.py +0 -0
  18. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/Dshell/_DshellTokenizer/dshell_tokenizer.py +0 -0
  19. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/Dshell/__init__.py +0 -0
  20. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/LICENSE +0 -0
  21. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/README.md +0 -0
  22. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/dshellInterpreter.egg-info/SOURCES.txt +0 -0
  23. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/dshellInterpreter.egg-info/dependency_links.txt +0 -0
  24. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/dshellInterpreter.egg-info/requires.txt +0 -0
  25. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/dshellInterpreter.egg-info/top_level.txt +0 -0
  26. {dshellinterpreter-0.2.4.2 → dshellinterpreter-0.2.4.3}/setup.cfg +0 -0
@@ -26,7 +26,8 @@ async def dshell_create_role(ctx: Message,
26
26
 
27
27
  from .._DshellInterpreteur.dshell_interpreter import build_colour
28
28
 
29
- colour = build_colour(color)
29
+ if not isinstance(color, _MissingSentinel):
30
+ color = build_colour(color)
30
31
 
31
32
  if not isinstance(hoist, (bool, _MissingSentinel)):
32
33
  raise Exception(f"Hoist must be a boolean, not {type(permissions)} !")
@@ -41,7 +42,7 @@ async def dshell_create_role(ctx: Message,
41
42
 
42
43
  created_role = await ctx.guild.create_role(name=name,
43
44
  permissions=permissions,
44
- colour=colour,
45
+ colour=color,
45
46
  hoist=hoist,
46
47
  mentionable=mentionable,
47
48
  reason=str(reason))
@@ -100,7 +101,8 @@ async def dshell_edit_role(ctx: Message,
100
101
 
101
102
  from .._DshellInterpreteur.dshell_interpreter import build_colour
102
103
 
103
- colour = build_colour(color)
104
+ if color is not None:
105
+ color = build_colour(color)
104
106
 
105
107
  if not isinstance(hoist, (bool, None)):
106
108
  raise Exception(f"Hoist must be a boolean, not {type(permissions)} !")
@@ -113,7 +115,7 @@ async def dshell_edit_role(ctx: Message,
113
115
 
114
116
  await role_to_edit.edit(name=name if name is not None else role_to_edit.name,
115
117
  permissions=permissions if permissions is not None else role_to_edit.permissions,
116
- colour=colour if color is not None else role_to_edit.colour,
118
+ colour=color if color is not None else role_to_edit.colour,
117
119
  hoist=hoist if hoist is not None else role_to_edit.hoist,
118
120
  mentionable=mentionable if mentionable is not None else role_to_edit.mentionable,
119
121
  position=position if position is not None else role_to_edit.position,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dshellInterpreter
3
- Version: 0.2.4.2
3
+ Version: 0.2.4.3
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
  Metadata-Version: 2.4
2
2
  Name: dshellInterpreter
3
- Version: 0.2.4.2
3
+ Version: 0.2.4.3
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
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setup(
7
7
  name="dshellInterpreter",
8
- version="0.2.4.2",
8
+ version="0.2.4.3",
9
9
  author="Chronos",
10
10
  author_email="vagabonwalybi@gmail.com",
11
11
  description="A Discord bot interpreter for creating custom commands and automations.",