Files
UnrealEngine/Engine/Source/Programs/Shared/EpicGames.Slack/Blocks/DividerBlock.cs
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

34 lines
846 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
namespace EpicGames.Slack.Blocks
{
/// <summary>
/// A content divider, like an &lt;hr&gt;, to split up different blocks inside of a message. The divider block is nice and neat, requiring only a type.
/// </summary>
public class DividerBlock : Block
{
/// <summary>
/// Constructor
/// </summary>
public DividerBlock() : base("divider")
{
}
}
/// <summary>
/// Extension methods for <see cref="Block"/>
/// </summary>
public static class DividerBlockExtensions
{
/// <summary>
/// Add an <see cref="DividerBlock"/> to the list of blocks
/// </summary>
/// <param name="container">Block container</param>
public static void AddDivider(this ISlackBlockContainer container)
{
DividerBlock block = new DividerBlock();
container.Blocks.Add(block);
}
}
}