async def METHOD_NAME(ctx: commands.Context):
    buttons = []
    for y in range(4):
        row = disnake.ui.ActionRow()
        buttons.append(row)
        for x in range(4):
            row.add_button(label=f"({x}, {y})", custom_id=f"gridbutton_{x}_{y}")
    await ctx.send("Here's a 4x4 grid of buttons:", components=buttons)