dshellInterpreter 0.2.4__py3-none-any.whl → 0.2.4.2__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 -2
- {dshellinterpreter-0.2.4.dist-info → dshellinterpreter-0.2.4.2.dist-info}/METADATA +1 -1
- {dshellinterpreter-0.2.4.dist-info → dshellinterpreter-0.2.4.2.dist-info}/RECORD +6 -6
- {dshellinterpreter-0.2.4.dist-info → dshellinterpreter-0.2.4.2.dist-info}/WHEEL +0 -0
- {dshellinterpreter-0.2.4.dist-info → dshellinterpreter-0.2.4.2.dist-info}/licenses/LICENSE +0 -0
- {dshellinterpreter-0.2.4.dist-info → dshellinterpreter-0.2.4.2.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
from discord import MISSING, Message,
|
|
1
|
+
from discord import MISSING, Message, PermissionOverwrite
|
|
2
2
|
from discord.utils import _MissingSentinel
|
|
3
|
-
from .._DshellInterpreteur.dshell_interpreter import build_colour, ListNode
|
|
4
3
|
|
|
5
4
|
__all__ = [
|
|
6
5
|
'dshell_create_role',
|
|
@@ -25,6 +24,8 @@ async def dshell_create_role(ctx: Message,
|
|
|
25
24
|
if not isinstance(permissions, (dict, _MissingSentinel)):
|
|
26
25
|
raise Exception(f"Permissions must be a PermissionNode, not {type(permissions)} !")
|
|
27
26
|
|
|
27
|
+
from .._DshellInterpreteur.dshell_interpreter import build_colour
|
|
28
|
+
|
|
28
29
|
colour = build_colour(color)
|
|
29
30
|
|
|
30
31
|
if not isinstance(hoist, (bool, _MissingSentinel)):
|
|
@@ -52,6 +53,7 @@ async def dshell_delete_roles(ctx: Message, roles, reason=None):
|
|
|
52
53
|
"""
|
|
53
54
|
Delete the role on the server
|
|
54
55
|
"""
|
|
56
|
+
from .._DshellInterpreteur.dshell_interpreter import ListNode
|
|
55
57
|
roles: int | ListNode
|
|
56
58
|
if not isinstance(roles, (int, ListNode)):
|
|
57
59
|
raise Exception(f"Role must be a int, role mention or NodeList of both, not {type(roles)} !")
|
|
@@ -96,6 +98,8 @@ async def dshell_edit_role(ctx: Message,
|
|
|
96
98
|
allow, deny = permissions[None].pair()
|
|
97
99
|
permissions = allow
|
|
98
100
|
|
|
101
|
+
from .._DshellInterpreteur.dshell_interpreter import build_colour
|
|
102
|
+
|
|
99
103
|
colour = build_colour(color)
|
|
100
104
|
|
|
101
105
|
if not isinstance(hoist, (bool, None)):
|
|
@@ -4,7 +4,7 @@ Dshell/DISCORD_COMMANDS/dshell_channel.py,sha256=2qnbI2tUu5sowJVOVkY4p-l6Gu-5Gw9
|
|
|
4
4
|
Dshell/DISCORD_COMMANDS/dshell_member.py,sha256=KEdI14VTmDJm3zb4Mt-cFe71Jdsrolj6O8673Vzw4n8,5943
|
|
5
5
|
Dshell/DISCORD_COMMANDS/dshell_message.py,sha256=fLxj_Ns-krZgXEPijhWvBFLorvmbleR6JpVOR72BIa8,5180
|
|
6
6
|
Dshell/DISCORD_COMMANDS/dshell_pastbin.py,sha256=TkWFGRRTvhhJgvwkDFx9Fz4UM2UUFwxyq0laMVx0mUk,881
|
|
7
|
-
Dshell/DISCORD_COMMANDS/dshell_role.py,sha256=
|
|
7
|
+
Dshell/DISCORD_COMMANDS/dshell_role.py,sha256=vpf3v_FLdkeQdWL_7eW5P4M-Tk0sKndvOZ-tkRnjCBg,4777
|
|
8
8
|
Dshell/_DshellInterpreteur/__init__.py,sha256=xy5-J-R3YmY99JF3NBHTRRLsComFxpjnCA5xacISctU,35
|
|
9
9
|
Dshell/_DshellInterpreteur/dshell_interpreter.py,sha256=dJS8frzNhKEvs-WdC7kwcZMZKefraWO4t8vLrFctjvA,22805
|
|
10
10
|
Dshell/_DshellParser/__init__.py,sha256=ONDfhZMvClqP_6tE8SLjp-cf3pXL-auQYnfYRrHZxC4,56
|
|
@@ -14,8 +14,8 @@ Dshell/_DshellTokenizer/__init__.py,sha256=LIQSRhDx2B9pmPx5ADMwwD0Xr9ybneVLhHH8q
|
|
|
14
14
|
Dshell/_DshellTokenizer/dshell_keywords.py,sha256=G9qdXr-d05QtmBdwTGa1qMDm7TDbIEkbx_-ERU97Ods,4664
|
|
15
15
|
Dshell/_DshellTokenizer/dshell_token_type.py,sha256=pWzvmj6EFGkDwNHooOAjdyysi1vZRVEostFIZSW1Ais,1483
|
|
16
16
|
Dshell/_DshellTokenizer/dshell_tokenizer.py,sha256=-EhwrfbcOcnAxOHWBE89531t25u6c6HmJuT1AKFn9Ew,7032
|
|
17
|
-
dshellinterpreter-0.2.4.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
|
|
18
|
-
dshellinterpreter-0.2.4.dist-info/METADATA,sha256=
|
|
19
|
-
dshellinterpreter-0.2.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
20
|
-
dshellinterpreter-0.2.4.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
|
|
21
|
-
dshellinterpreter-0.2.4.dist-info/RECORD,,
|
|
17
|
+
dshellinterpreter-0.2.4.2.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
|
|
18
|
+
dshellinterpreter-0.2.4.2.dist-info/METADATA,sha256=bw76lXZufFvvnfLChu23WIeXbHFcCuaUHPeheYP7RF0,1122
|
|
19
|
+
dshellinterpreter-0.2.4.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
20
|
+
dshellinterpreter-0.2.4.2.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
|
|
21
|
+
dshellinterpreter-0.2.4.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|