BaumSplitter41 3 周之前
父节点
当前提交
43417420a4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      VPD_BOT/cogs/auto_delete_msg.py

+ 1 - 1
VPD_BOT/cogs/auto_delete_msg.py

@@ -18,7 +18,7 @@ class autodelmsg(commands.Cog):
         return config
     def _get_info_channel(self):
         config = self._load_config()
-        channel_ids = [int(channel_id.strip()) for channel_id in config.get("Moderation")("autodelete_channel_id").split(",")]
+        channel_ids = [int(channel_id.strip()) for channel_id in config["Moderation"]["autodelete_channel_id"].split(",")]
         channels = [self.bot.get_channel(channel_id) for channel_id in channel_ids]
         if any(channel is None for channel in channels):
             print(f"One or more roles with IDs {channel_ids} not found.")