Browse Source
Use v8 overwrite type when creating a channel
pull/6705/head
Nadir Chowdhury
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
discord/guild.py
|
|
@ -26,7 +26,7 @@ import copy |
|
|
|
from collections import namedtuple |
|
|
|
from typing import List, TYPE_CHECKING |
|
|
|
|
|
|
|
from . import utils |
|
|
|
from . import utils, abc |
|
|
|
from .role import Role |
|
|
|
from .member import Member, VoiceState |
|
|
|
from .emoji import Emoji |
|
|
@ -854,9 +854,9 @@ class Guild(Hashable): |
|
|
|
} |
|
|
|
|
|
|
|
if isinstance(target, Role): |
|
|
|
payload['type'] = 'role' |
|
|
|
payload['type'] = abc._Overwrites.ROLE |
|
|
|
else: |
|
|
|
payload['type'] = 'member' |
|
|
|
payload['type'] = abc._Overwrites.MEMBER |
|
|
|
|
|
|
|
perms.append(payload) |
|
|
|
|
|
|
|