#__init method for parameters does not work

1 messages · Page 1 of 1 (latest)

pine flume
#

you made bedingungen required, but you didn't pass it into bot.add_cog(database2(bot))

#

i mean

#

either pass in bedingungen, make it optional (bedingungen=None in the init) or remove bedingungen

#

yeah

digital quarry
#

the return type of database2() should be View

sleek micaBOT
#

Here's the persistent example.

digital quarry
#

and the error occurs, cause your code simply does not provide any view to the add_view method

digital quarry
#

database2(self.bedingungen)

Does this not create a new Cog?

#

I know, but what does it do?

#

uhm ok... seems like I don’t understand this code