From d9f619f0075919301264b6656aa6c88619d93fba Mon Sep 17 00:00:00 2001 From: Andrei Date: Mon, 24 Apr 2017 15:31:01 -0700 Subject: [PATCH] Rename Invite.create -> create_for_channel This was smashing a base model method --- disco/types/invite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disco/types/invite.py b/disco/types/invite.py index 0cc4852..7f22a57 100644 --- a/disco/types/invite.py +++ b/disco/types/invite.py @@ -1,4 +1,4 @@ -from disco.types.base import SlottedModel, Field, datetime +from disco.types.base import SlottedModel, Field, datetime from disco.types.user import User from disco.types.guild import Guild from disco.types.channel import Channel @@ -40,7 +40,7 @@ class Invite(SlottedModel): created_at = Field(datetime) @classmethod - def create(cls, channel, max_age=86400, max_uses=0, temporary=False, unique=False): + def create_for_channel(cls, channel, max_age=86400, max_uses=0, temporary=False, unique=False): return channel.client.api.channels_invites_create( channel.id, max_age=max_age,