More guild settings.

This commit is contained in:
Ev-1 committed 2019-02-03 14:06:40 +01:00
1 parent 7b2941ae2b
commit e8225d42f0
4 files changed
+146 -18

No files matched your search

+1 -1
View File
@@ -78,7 +78,7 @@ class Settings:
class attribute the value of the attribute will get returned."""
guild_id = str(guild_id)
if default and hasattr(self, default):
if default and isinstance(default, str) and hasattr(self, default):
default = getattr(self, default)
elif not default:
default = None