Update View lib. Fix typo in if conditional
This commit is contained in:
parent
1cb19f8d9b
commit
745c3a9202
|
|
@ -12,7 +12,7 @@ class View(discord.ui.View):
|
|||
self.load_buttons()
|
||||
|
||||
def get_buttons(self):
|
||||
if self.button_dir is None:
|
||||
if self.button_dir is not None:
|
||||
for filename in os.listdir(self.button_dir):
|
||||
if filename.endswith(".py"):
|
||||
class_name = filename[:-3]
|
||||
|
|
|
|||
Loading…
Reference in a new issue