createInvite method
Create an Invite for this
final Invite invite = await channel.createInvite();
print(invite.url);
Channel should be an instance of TextBasedChannel
Implementation
Future<Invite> createInvite() async {
final result = await ioc.use<DiscordApiHttpService>()
.post(url: '/channels/$id/invites')
.build();
return Invite.from(guild.id, jsonDecode(result.body));
}