create<T extends GuildChannel> method

Future<T?> create<T extends GuildChannel>(
  1. ChannelBuilder channel
)

Create a Category channel

final CategoryChannel category = await guild.channels.create(ChannelBuilder.fromCategoryChannel(label: "Lorem", position: 0, permissions: []));

Implementation

Future<T?> create<T extends GuildChannel> (ChannelBuilder channel) async {
  return super.guild.channels.create(channel);
}