|
|
@@ -41,9 +41,9 @@ namespace Discord.Rest |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
internal new static RestStageChannel Create(BaseDiscordClient discord, IGuild guild, Model model) |
|
|
|
internal new static RestForumChannel Create(BaseDiscordClient discord, IGuild guild, Model model) |
|
|
|
{ |
|
|
|
var entity = new RestStageChannel(discord, guild, model.Id); |
|
|
|
var entity = new RestForumChannel(discord, guild, model.Id); |
|
|
|
entity.Update(model); |
|
|
|
return entity; |
|
|
|
} |
|
|
@@ -66,6 +66,13 @@ namespace Discord.Rest |
|
|
|
).ToImmutableArray(); |
|
|
|
} |
|
|
|
|
|
|
|
/// <inheritdoc/> |
|
|
|
public async Task ModifyAsync(Action<ForumChannelProperties> func, RequestOptions options = null) |
|
|
|
{ |
|
|
|
var model = await ForumHelper.ModifyAsync(this, Discord, func, options); |
|
|
|
Update(model); |
|
|
|
} |
|
|
|
|
|
|
|
/// <inheritdoc cref="IForumChannel.CreatePostAsync(string, ThreadArchiveDuration, int?, string, Embed, RequestOptions, AllowedMentions, MessageComponent, ISticker[], Embed[], MessageFlags)"/> |
|
|
|
public Task<RestThreadChannel> CreatePostAsync(string title, ThreadArchiveDuration archiveDuration = ThreadArchiveDuration.OneDay, int? slowmode = null, string text = null, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageComponent components = null, ISticker[] stickers = null, Embed[] embeds = null, MessageFlags flags = MessageFlags.None) |
|
|
|
=> ThreadHelper.CreatePostAsync(this, Discord, title, archiveDuration, slowmode, text, embed, options, allowedMentions, components, stickers, embeds, flags); |
|
|
|