diff options
| author | Rapptz <[email protected]> | 2021-03-30 03:54:58 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-03-30 03:54:58 -0400 |
| commit | 7f0db1f35ab845e1e744fce62cbb2b41b25c3bcc (patch) | |
| tree | 5a99b0d28c3af3c21982a8e31cdbe02da4fb120b | |
| parent | Ignore moving category channels to another category (diff) | |
| download | discord.py-7f0db1f35ab845e1e744fce62cbb2b41b25c3bcc.tar.xz discord.py-7f0db1f35ab845e1e744fce62cbb2b41b25c3bcc.zip | |
Return early if no kwargs are given to GuildChannel.move
| -rw-r--r-- | discord/abc.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/abc.py b/discord/abc.py index be2c9b21..ef7d403d 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -767,6 +767,9 @@ class GuildChannel: Moving the channel failed. """ + if not kwargs: + return + beginning, end = kwargs.get('beginning'), kwargs.get('end') before, after = kwargs.get('before'), kwargs.get('after') offset = kwargs.get('offset', 0) |