dshellInterpreter 0.2.4.3__py3-none-any.whl → 0.2.4.4__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_role.py +6 -5
- Dshell/__init__.py +1 -0
- Dshell/_utils.py +1 -0
- {dshellinterpreter-0.2.4.3.dist-info → dshellinterpreter-0.2.4.4.dist-info}/METADATA +1 -1
- {dshellinterpreter-0.2.4.3.dist-info → dshellinterpreter-0.2.4.4.dist-info}/RECORD +8 -7
- {dshellinterpreter-0.2.4.3.dist-info → dshellinterpreter-0.2.4.4.dist-info}/WHEEL +0 -0
- {dshellinterpreter-0.2.4.3.dist-info → dshellinterpreter-0.2.4.4.dist-info}/licenses/LICENSE +0 -0
- {dshellinterpreter-0.2.4.3.dist-info → dshellinterpreter-0.2.4.4.dist-info}/top_level.txt +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from discord import MISSING, Message, PermissionOverwrite
|
|
2
2
|
from discord.utils import _MissingSentinel
|
|
3
|
+
from .._utils import NoneType
|
|
3
4
|
|
|
4
5
|
__all__ = [
|
|
5
6
|
'dshell_create_role',
|
|
@@ -88,10 +89,10 @@ async def dshell_edit_role(ctx: Message,
|
|
|
88
89
|
|
|
89
90
|
role_to_edit = ctx.guild.get_role(role)
|
|
90
91
|
|
|
91
|
-
if not isinstance(name, (str,
|
|
92
|
+
if not isinstance(name, (str, NoneType)):
|
|
92
93
|
raise Exception(f"Name must be a string, not {type(name)} !")
|
|
93
94
|
|
|
94
|
-
if not isinstance(permissions, (dict,
|
|
95
|
+
if not isinstance(permissions, (dict, NoneType)):
|
|
95
96
|
raise Exception(f"Permissions must be a PermissionNode, not {type(permissions)} !")
|
|
96
97
|
|
|
97
98
|
if isinstance(permissions, dict):
|
|
@@ -104,13 +105,13 @@ async def dshell_edit_role(ctx: Message,
|
|
|
104
105
|
if color is not None:
|
|
105
106
|
color = build_colour(color)
|
|
106
107
|
|
|
107
|
-
if not isinstance(hoist, (bool,
|
|
108
|
+
if not isinstance(hoist, (bool, NoneType)):
|
|
108
109
|
raise Exception(f"Hoist must be a boolean, not {type(permissions)} !")
|
|
109
110
|
|
|
110
|
-
if not isinstance(mentionable, (bool,
|
|
111
|
+
if not isinstance(mentionable, (bool, NoneType)):
|
|
111
112
|
raise Exception(f"Mentionable must be a boolean, not {type(permissions)} !")
|
|
112
113
|
|
|
113
|
-
if not isinstance(position, (int,
|
|
114
|
+
if not isinstance(position, (int, NoneType)):
|
|
114
115
|
raise Exception(f"Position must be an integer, not {type(permissions)} !")
|
|
115
116
|
|
|
116
117
|
await role_to_edit.edit(name=name if name is not None else role_to_edit.name,
|
Dshell/__init__.py
CHANGED
Dshell/_utils.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
NoneType = type(None)
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
Dshell/__init__.py,sha256=
|
|
1
|
+
Dshell/__init__.py,sha256=pGd94FPy8kVXH_jH566HhApQPhbPfMPnZXzH_0dPWh0,93
|
|
2
|
+
Dshell/_utils.py,sha256=PJ3fwn8IMqUMnW9oTwfr9v4--rzHIhhLQoVVqjwjoJU,23
|
|
2
3
|
Dshell/DISCORD_COMMANDS/__init__.py,sha256=_oo_aMEju4gZg-MIbF8bKMVM6CWAF0AO9DxAlemaXMw,149
|
|
3
4
|
Dshell/DISCORD_COMMANDS/dshell_channel.py,sha256=2qnbI2tUu5sowJVOVkY4p-l6Gu-5Gw9BEP3MItScvV8,8939
|
|
4
5
|
Dshell/DISCORD_COMMANDS/dshell_member.py,sha256=KEdI14VTmDJm3zb4Mt-cFe71Jdsrolj6O8673Vzw4n8,5943
|
|
5
6
|
Dshell/DISCORD_COMMANDS/dshell_message.py,sha256=fLxj_Ns-krZgXEPijhWvBFLorvmbleR6JpVOR72BIa8,5180
|
|
6
7
|
Dshell/DISCORD_COMMANDS/dshell_pastbin.py,sha256=TkWFGRRTvhhJgvwkDFx9Fz4UM2UUFwxyq0laMVx0mUk,881
|
|
7
|
-
Dshell/DISCORD_COMMANDS/dshell_role.py,sha256=
|
|
8
|
+
Dshell/DISCORD_COMMANDS/dshell_role.py,sha256=KUoyBf4xNvg0ahlM_l5gePfaOfwJ8rImfT3JnQsIeMM,4908
|
|
8
9
|
Dshell/_DshellInterpreteur/__init__.py,sha256=xy5-J-R3YmY99JF3NBHTRRLsComFxpjnCA5xacISctU,35
|
|
9
10
|
Dshell/_DshellInterpreteur/dshell_interpreter.py,sha256=dJS8frzNhKEvs-WdC7kwcZMZKefraWO4t8vLrFctjvA,22805
|
|
10
11
|
Dshell/_DshellParser/__init__.py,sha256=ONDfhZMvClqP_6tE8SLjp-cf3pXL-auQYnfYRrHZxC4,56
|
|
@@ -14,8 +15,8 @@ Dshell/_DshellTokenizer/__init__.py,sha256=LIQSRhDx2B9pmPx5ADMwwD0Xr9ybneVLhHH8q
|
|
|
14
15
|
Dshell/_DshellTokenizer/dshell_keywords.py,sha256=G9qdXr-d05QtmBdwTGa1qMDm7TDbIEkbx_-ERU97Ods,4664
|
|
15
16
|
Dshell/_DshellTokenizer/dshell_token_type.py,sha256=pWzvmj6EFGkDwNHooOAjdyysi1vZRVEostFIZSW1Ais,1483
|
|
16
17
|
Dshell/_DshellTokenizer/dshell_tokenizer.py,sha256=-EhwrfbcOcnAxOHWBE89531t25u6c6HmJuT1AKFn9Ew,7032
|
|
17
|
-
dshellinterpreter-0.2.4.
|
|
18
|
-
dshellinterpreter-0.2.4.
|
|
19
|
-
dshellinterpreter-0.2.4.
|
|
20
|
-
dshellinterpreter-0.2.4.
|
|
21
|
-
dshellinterpreter-0.2.4.
|
|
18
|
+
dshellinterpreter-0.2.4.4.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
|
|
19
|
+
dshellinterpreter-0.2.4.4.dist-info/METADATA,sha256=V122a3qdmtpQ3UzZa0b2Ql0rGXx1sWJfZxmWef6LwY8,1122
|
|
20
|
+
dshellinterpreter-0.2.4.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
21
|
+
dshellinterpreter-0.2.4.4.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
|
|
22
|
+
dshellinterpreter-0.2.4.4.dist-info/RECORD,,
|
|
File without changes
|
{dshellinterpreter-0.2.4.3.dist-info → dshellinterpreter-0.2.4.4.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|