async def METHOD_NAME(self, ctx: ModalContext, result: Any, value: Any, body: str) -> Optional[Message]:
    # body can be of length 2000 and exceed the limit after formatting
    if len(cmd_body := f"```py\n{body}```") <= 2000:
        await ctx.send(cmd_body)
    else:
        paginator = Paginator.create_from_string(self.bot, body, prefix="```py", suffix="```", page_size=4000)
        await paginator.send(ctx)
    if result is None:
        result = value or "No Output!"
    elif isinstance(result, Message):
        try:
            e = debug_embed("Exec", timestamp=result.created_at, url=result.jump_url)
            e.description = result.content
            e.set_author(
                result.author.tag,
                icon_url=(result.author.guild_avatar or result.author.avatar).url,
            )
            e.add_field("\u200b", f"[Jump To]({result.jump_url})\n{result.channel.mention}")
            return await ctx.send(embeds=e)
        except Exception:
            return await ctx.send(result.jump_url)
    elif isinstance(result, Embed):
        return await ctx.send(embeds=[result])
    elif isinstance(result, File):
        return await ctx.send(file=result)
    elif isinstance(result, Paginator):
        return await result.send(ctx)
    if hasattr(result, "__iter__"):
        l_result = list(result)
        if all(isinstance(r, Embed) for r in result):
            paginator = Paginator.create_from_embeds(self.bot, *l_result)
            return await paginator.send(ctx)
    if not isinstance(result, str):
        result = repr(result)
    # prevent token leak
    result = result.replace(self.bot.http.token, "[REDACTED TOKEN]")
    if len(cmd_result := f"```py\n{result}```") <= 2000:
        return await ctx.send(cmd_result)
    paginator = Paginator.create_from_string(self.bot, result, prefix="```py", suffix="```", page_size=4000)
    return await paginator.send(ctx)