From 6865a5772fb1f3fe244e7170d28ff2845db60cb5 Mon Sep 17 00:00:00 2001 From: Luna Mendes Date: Fri, 19 Oct 2018 04:32:26 -0300 Subject: [PATCH] blueprints.invites: call create_guild_settings --- litecord/blueprints/invites.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litecord/blueprints/invites.py b/litecord/blueprints/invites.py index 011da6a..246b8d0 100644 --- a/litecord/blueprints/invites.py +++ b/litecord/blueprints/invites.py @@ -9,7 +9,7 @@ from ..schemas import validate, INVITE from ..enums import ChannelType from ..errors import BadRequest, Forbidden from .channels import channel_check -from .guilds import guild_check +from .guilds import guild_check, create_guild_settings from ..utils import async_map log = Logger(__name__) @@ -167,6 +167,8 @@ async def use_invite(invite_code): VALUES ($1, $2) """, user_id, guild_id) + await create_guild_settings(guild_id, user_id) + # add the @everyone role to the invited member await app.db.execute(""" INSERT INTO member_roles (user_id, guild_id, role_id)