mirror of
https://github.com/UiO-Gaming/ShiteMusicBot.git
synced 2026-11-07 06:44:29 +01:00
More guild settings.
This commit is contained in:
1 parent
7b2941ae2b
commit
e8225d42f0
4 files changed
+146
-18
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user