-
Notifications
You must be signed in to change notification settings - Fork 187
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug.
I am using get to grab the channel and then using create_invite to make a new invite into that channel. Instead of an invite, I get an error.
channel = configuration.get_int('Discord.channels.applicant_info')
channel_obj = await get(bot, Channel, object_id=channel)
invite = await channel_obj.create_invite(max_uses=3, unique=True)This is not a channel ID error, as otherwise I would get a "discord error with severity 40".
List the steps.
- Import the module in python
- Use
getto get a channel - Try to create an invite
- Observe the error
What you expected.
I get an Invite object
What you saw.
Instead, I received this traceback error given from my Python terminal:
Traceback (most recent call):
File ".../interactions/api/models/channel.py", line 1102, in create_invite
return Invite(**res, _client=self._client)
TypeError: interactions.api.models.guild.Invite() argument after ** must be a mapping, not NoneType
What version of the library did you use?
unstable
Version specification
Stable + commits 3da5183 (fix to get crash) and 3c377d49 (fix to member roles)
Code of Conduct
- I agree to follow the contribution requirements.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working