mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-24 14:07:03 +01:00
If they can't write to a channel, then no attaching files
This commit is contained in:
parent
a742f08f6d
commit
6f692ed730
@ -229,7 +229,7 @@ def get_guild_channels(guild_id, force_everyone=False, forced_role=0):
|
||||
result["write"] = False
|
||||
if not bot_result["mention_everyone"]:
|
||||
result["mention_everyone"] = False
|
||||
if not bot_result["attach_files"] or not db_guild.file_upload:
|
||||
if not bot_result["attach_files"] or not db_guild.file_upload or not result["write"]:
|
||||
result["attach_files"] = False
|
||||
result_channels.append(result)
|
||||
return sorted(result_channels, key=lambda k: k['channel']['position'])
|
||||
|
Loading…
Reference in New Issue
Block a user