From 6f692ed730da8a6e56538a4a389e2123adea4e1c Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Fri, 17 Aug 2018 03:32:14 +0000 Subject: [PATCH] If they can't write to a channel, then no attaching files --- webapp/titanembeds/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/titanembeds/utils.py b/webapp/titanembeds/utils.py index 9972008..0208ac6 100644 --- a/webapp/titanembeds/utils.py +++ b/webapp/titanembeds/utils.py @@ -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'])