diff --git a/bot/extensions/github/commands.py b/bot/extensions/github/commands.py index 6d37f7a8..5640ae05 100644 --- a/bot/extensions/github/commands.py +++ b/bot/extensions/github/commands.py @@ -37,11 +37,11 @@ async def source( title = f"# Source code for command: [/{command.qualified_name}](<{self.get_github_url(callback)}>)" response = f"{title}\n```py\n{first_page}" - if len(source) > max_page_size: - response += "\n... # Result was truncated, view github for full source." - response += "\n```" + if len(source) > max_page_size: + response += "\n### Result was truncated, view github for full source." + return await interaction.response.send_message(response) def get_github_url(self, callback: types.FunctionType) -> str: