mirror of
https://github.com/brandons209/Red-bot-Cogs.git
synced 2024-05-16 10:23:57 +12:00
remove discord default channel
This commit is contained in:
parent
eef391c268
commit
b537280aa8
|
@ -191,10 +191,6 @@ def permissions_for_roles(channel, *roles):
|
|||
|
||||
base.handle_overwrite(allow=allows, deny=denies)
|
||||
|
||||
# default channels can always be read
|
||||
if channel.is_default:
|
||||
base.read_messages = True
|
||||
|
||||
# if you can't send a message in a channel then you can't have certain
|
||||
# permissions as well
|
||||
if not base.send_messages:
|
||||
|
|
|
@ -191,10 +191,6 @@ def permissions_for_roles(channel, *roles):
|
|||
|
||||
base.handle_overwrite(allow=allows, deny=denies)
|
||||
|
||||
# default channels can always be read
|
||||
if channel.is_default:
|
||||
base.read_messages = True
|
||||
|
||||
# if you can't send a message in a channel then you can't have certain
|
||||
# permissions as well
|
||||
if not base.send_messages:
|
||||
|
|
Loading…
Reference in a new issue