Migration vers Disnake et ajout des components V2
This commit is contained in:
parent
c8c579eefe
commit
98f7501e07
47 changed files with 1196 additions and 722 deletions
17
backups/scratch/test_edit_message.py
Normal file
17
backups/scratch/test_edit_message.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import disnake
|
||||
import asyncio
|
||||
|
||||
async def main():
|
||||
class DummyResponse:
|
||||
async def edit_message(self, *args, **kwargs):
|
||||
print(kwargs)
|
||||
|
||||
inter = type('DummyInter', (), {'response': DummyResponse()})()
|
||||
container = disnake.ui.Container()
|
||||
try:
|
||||
await inter.response.edit_message(components=[container])
|
||||
print("Success")
|
||||
except Exception as e:
|
||||
print(f"Error: {e}")
|
||||
|
||||
asyncio.run(main())
|
||||
Loading…
Add table
Add a link
Reference in a new issue