@SixBeeps I figured out the issue. It isn't about the complexity but for some reason it returns none type object for "server.owner", "server.owner.name", "server.owner.mention" and stops the execution which is weird because it works fine on my PC but on replit it returns a none type object.
See here.
This isn't an error, but rather a warning. Your code doesn't work because of something else. Mind linking a Repl?
@SixBeeps It works if I run it on my PC. But it doesn't when I run on replit.
@SixBeeps It is a discord bot command.
@SixBeeps I figured out the issue. It isn't about the complexity but for some reason it returns none type object for "server.owner", "server.owner.name", "server.owner.mention" and stops the execution which is weird because it works fine on my PC but on replit it returns a none type object.