setTags method

Future<void> setTags(
  1. List<ForumTagBuilder> tags
)

Defines the tags of this

final channel = guild.channels.cache.getOrFail('...');
await channel.setTags([
  ForumTagBuilder(label: 'Hello world !', moderated: false),
  ForumTagBuilder(label: 'Hello world !', moderated: false, emoji: EmojiBuilder.fromUnicode('🧱')),
]);

Implementation

Future<void> setTags (List<ForumTagBuilder> tags) async {
  await update(ChannelBuilder({
    'available_tags': [...tags.map((tag) => tag.toJson())]
  }));
}