mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat: upgrade to .NET 6, refactor everything
This commit is contained in:
parent
d28e99ba43
commit
1918c56937
314 changed files with 27954 additions and 27966 deletions
|
|
@ -1,16 +1,15 @@
|
|||
using Myriad.Types;
|
||||
|
||||
namespace Myriad.Extensions
|
||||
namespace Myriad.Extensions;
|
||||
|
||||
public static class ChannelExtensions
|
||||
{
|
||||
public static class ChannelExtensions
|
||||
{
|
||||
public static string Mention(this Channel channel) => $"<#{channel.Id}>";
|
||||
public static string Mention(this Channel channel) => $"<#{channel.Id}>";
|
||||
|
||||
public static bool IsThread(this Channel channel) => channel.Type.IsThread();
|
||||
public static bool IsThread(this Channel channel) => channel.Type.IsThread();
|
||||
|
||||
public static bool IsThread(this Channel.ChannelType type) =>
|
||||
type is Channel.ChannelType.GuildPublicThread
|
||||
or Channel.ChannelType.GuildPrivateThread
|
||||
or Channel.ChannelType.GuildNewsThread;
|
||||
}
|
||||
public static bool IsThread(this Channel.ChannelType type) =>
|
||||
type is Channel.ChannelType.GuildPublicThread
|
||||
or Channel.ChannelType.GuildPrivateThread
|
||||
or Channel.ChannelType.GuildNewsThread;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue