From 3c73078c927f1b95675de45871b6b3b3aedadc3d Mon Sep 17 00:00:00 2001 From: DiamondIceNS Date: Sun, 10 Jun 2018 11:59:32 -0500 Subject: [PATCH] Fixed crash in language command --- objects/glimcontext.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/objects/glimcontext.py b/objects/glimcontext.py index 7963286..d4ae430 100644 --- a/objects/glimcontext.py +++ b/objects/glimcontext.py @@ -4,12 +4,6 @@ from lang import en_US, pt_BR -langs = { - 'en-us': "English (US)", - 'pt-br': "Português (BR)" -} - - class GlimContext(commands.Context): def __init__(self, **attrs): super().__init__(**attrs) @@ -18,6 +12,11 @@ def __init__(self, **attrs): self.is_default = False self.is_template = False + langs = { + 'en-us': "English (US)", + 'pt-br': "Português (BR)" + } + @property def canvas(self): return sql.guild_get_canvas_by_id(self.guild.id)