#Change Forum Post Tags

1 messages · Page 1 of 1 (latest)

lyric ferry
#

I think I can do that with ModifyAsync(). But I dont get how this command works.
Pls help me

mystic moss
#

You need to get a list of forum tag ids and then use the AppliedTags parameter ex: ```List<ulong> tagIds = new List<ulong>()
{
forumChannel.Tags.First().Id;
};

await post.ModifyAsync(x =>
{
x.AppliedTags = tagIds;
};``` I'm on mobile so hope this looks correct

#

Note: this will override any tags previously applied so if you wish to keep those you'll need to include them in the new list

lyric ferry
#

@mystic moss Thank u very much. I will try it when i get home

dense oyster
#

@lyric ferry did you ever get this working? I tried the above fix but AppliedTags is ReadOnly, it won't let me set anything to it

dense oyster
#

Never mind I figured it out

olive escarp
#

He is about to be that guy who says "I figured it out" without telling future users what he did