diff --git a/dislocker.py b/dislocker.py index 5d04c37..34170bf 100644 --- a/dislocker.py +++ b/dislocker.py @@ -343,7 +343,7 @@ class Bot(discord.Client): elif msg_split[0] == "/export": export = self.report_export() if export["result"] == "ok": - await message.channel.send("使用履歴のレポートです。", file=discord.file(export["file_path"])) + await message.channel.send("使用履歴のレポートです。", file=discord.File(export["file_path"])) pass elif export["result"] == "export_error": await message.channel.send("エクスポートに失敗しました。")