Added generation support for custom flags and fixed white space issue when there aren't slashcommands or events