docs: AG Native bundle reverse engineering analysis — plannerResponse/Whi renderer structure, V8 cache fix, known-issues update
This commit is contained in:
12
test_view2.py
Normal file
12
test_view2.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import discord
|
||||
from bot import ApprovalView
|
||||
from models import ApprovalRequest
|
||||
|
||||
request = ApprovalRequest("id", "convo", "cmd", "desc", 0.0)
|
||||
view = ApprovalView(request, buttons=[{"text":"yes","index":0}, {"text":"no","index":1}], hub=None)
|
||||
print("View items:", view.children)
|
||||
try:
|
||||
print(view.to_components())
|
||||
print("SUCCESS")
|
||||
except Exception as e:
|
||||
print("CRASH:", e)
|
||||
Reference in New Issue
Block a user