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,