DEV Community

Discussion on: discord.py Project 4: ✍🏽Partnership Bot!

Collapse
 
amank346 profile image
Aman-k346

kages/discord/ext/commands/core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "main.py", line 121, in testform
form = forms.Form(ctx, 'Title')
NameError: name 'forms' is not defined

when i try to import forms it's not working

Collapse
 
janakxd profile image
Janak

first make sure that you have indstalled module or not :

pip install discord-ext-forms
Enter fullscreen mode Exit fullscreen mode

and if you already have installed then import module like this :

from discord.ext.forms import Form, ReactConfirm
Enter fullscreen mode Exit fullscreen mode