dshellInterpreter 1.1.3.2__tar.gz → 1.1.3.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.
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/dshell_member.py +6 -8
- {dshellinterpreter-1.1.3.2/dshellInterpreter.egg-info → dshellinterpreter-1.1.3.3}/PKG-INFO +1 -1
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3/dshellInterpreter.egg-info}/PKG-INFO +1 -1
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/setup.py +1 -1
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/__init__.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/dshell_channel.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/dshell_embed.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/dshell_interaction.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/dshell_message.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/dshell_pastbin.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/dshell_role.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/dshell_ui.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/utils/__init__.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/utils/utils_global.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/utils/utils_list.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/utils/utils_member.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/utils/utils_message.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/utils/utils_numbers.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/utils/utils_permissions.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/utils/utils_string.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/utils/utils_thread.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/utils/utils_type_validation.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellInterpreteur/__init__.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellInterpreteur/cached_messages.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellInterpreteur/dshell_arguments.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellInterpreteur/dshell_interpreter.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellInterpreteur/dshell_scope.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellInterpreteur/errors.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellInterpreteur/utils_interpreter.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellParser/__init__.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellParser/ast_nodes.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellParser/dshell_parser.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellPreProcess/__init__.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellPreProcess/dshell_preprocess.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellTokenizer/__init__.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellTokenizer/dshell_keywords.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellTokenizer/dshell_token_type.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellTokenizer/dshell_tokenizer.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/__init__.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/full_import.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/regex_test.py +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/LICENSE +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/README.md +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/dshellInterpreter.egg-info/SOURCES.txt +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/dshellInterpreter.egg-info/dependency_links.txt +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/dshellInterpreter.egg-info/requires.txt +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/dshellInterpreter.egg-info/top_level.txt +0 -0
- {dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/setup.cfg +0 -0
{dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/dshell_member.py
RENAMED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from discord import VoiceChannel
|
|
2
|
+
|
|
1
3
|
from Dshell.full_import import (Message,
|
|
2
4
|
Embed,
|
|
3
5
|
MISSING,
|
|
@@ -338,7 +340,7 @@ async def dshell_check_permissions(ctx: Message, permissions, member=None):
|
|
|
338
340
|
return False
|
|
339
341
|
|
|
340
342
|
|
|
341
|
-
async def dshell_move_member(ctx: Message,
|
|
343
|
+
async def dshell_move_member(ctx: Message, channel=None, member=None, reason=None):
|
|
342
344
|
"""
|
|
343
345
|
Déplace un membre vers un autre canal vocal ou le déconnecte.
|
|
344
346
|
|
|
@@ -373,7 +375,6 @@ async def dshell_move_member(ctx: Message, member=None, channel=None, disconnect
|
|
|
373
375
|
|
|
374
376
|
_validate_optional_int(member, "Member", _CMD)
|
|
375
377
|
_validate_optional_int(channel, "Channel", _CMD)
|
|
376
|
-
_validate_required_bool(disconnect, "Disconnect", _CMD)
|
|
377
378
|
_validate_optional_string(reason, "Reason", _CMD)
|
|
378
379
|
|
|
379
380
|
target_member = ctx.author if member is None else ctx.channel.guild.get_member(member)
|
|
@@ -385,13 +386,10 @@ async def dshell_move_member(ctx: Message, member=None, channel=None, disconnect
|
|
|
385
386
|
if target_member.voice.channel is None:
|
|
386
387
|
raise Exception(f'Member {target_member.name} is not in a voice channel !')
|
|
387
388
|
|
|
388
|
-
if not target_channel:
|
|
389
|
-
raise
|
|
389
|
+
if target_channel is not None and not isinstance(target_channel, VoiceChannel):
|
|
390
|
+
raise TypeError(f"Target channel must be a Voice Channel !")
|
|
390
391
|
|
|
391
|
-
|
|
392
|
-
await target_member.move_to(None, reason=reason)
|
|
393
|
-
else:
|
|
394
|
-
await target_member.move_to(target_channel, reason=reason)
|
|
392
|
+
await target_member.move_to(target_channel, reason=reason)
|
|
395
393
|
|
|
396
394
|
return target_member.id
|
|
397
395
|
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="dshellInterpreter",
|
|
8
|
-
version="1.1.3.
|
|
8
|
+
version="1.1.3.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.",
|
|
File without changes
|
{dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/dshell_channel.py
RENAMED
|
File without changes
|
{dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/dshell_embed.py
RENAMED
|
File without changes
|
|
File without changes
|
{dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/dshell_message.py
RENAMED
|
File without changes
|
{dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/dshell_pastbin.py
RENAMED
|
File without changes
|
{dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/dshell_role.py
RENAMED
|
File without changes
|
{dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/dshell_ui.py
RENAMED
|
File without changes
|
{dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DISCORD_COMMANDS/utils/utils_list.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellInterpreteur/__init__.py
RENAMED
|
File without changes
|
{dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellInterpreteur/cached_messages.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellInterpreteur/dshell_scope.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellParser/dshell_parser.py
RENAMED
|
File without changes
|
|
File without changes
|
{dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellPreProcess/dshell_preprocess.py
RENAMED
|
File without changes
|
|
File without changes
|
{dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellTokenizer/dshell_keywords.py
RENAMED
|
File without changes
|
{dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellTokenizer/dshell_token_type.py
RENAMED
|
File without changes
|
{dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/Dshell/DshellTokenizer/dshell_tokenizer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/dshellInterpreter.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/dshellInterpreter.egg-info/requires.txt
RENAMED
|
File without changes
|
{dshellinterpreter-1.1.3.2 → dshellinterpreter-1.1.3.3}/dshellInterpreter.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|