mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 22:37:54 +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,25 +1,24 @@
|
|||
#nullable enable
|
||||
using PluralKit.Core;
|
||||
|
||||
namespace PluralKit.Bot
|
||||
namespace PluralKit.Bot;
|
||||
|
||||
public struct ProxyMatch
|
||||
{
|
||||
public struct ProxyMatch
|
||||
public ProxyMember Member;
|
||||
public string? Content;
|
||||
public ProxyTag? ProxyTags;
|
||||
|
||||
public string? ProxyContent
|
||||
{
|
||||
public ProxyMember Member;
|
||||
public string? Content;
|
||||
public ProxyTag? ProxyTags;
|
||||
|
||||
public string? ProxyContent
|
||||
get
|
||||
{
|
||||
get
|
||||
{
|
||||
// Add the proxy tags into the proxied message if that option is enabled
|
||||
// Also check if the member has any proxy tags - some cases autoproxy can return a member with no tags
|
||||
if (Member.KeepProxy && Content != null && ProxyTags != null)
|
||||
return $"{ProxyTags.Value.Prefix}{Content}{ProxyTags.Value.Suffix}";
|
||||
// Add the proxy tags into the proxied message if that option is enabled
|
||||
// Also check if the member has any proxy tags - some cases autoproxy can return a member with no tags
|
||||
if (Member.KeepProxy && Content != null && ProxyTags != null)
|
||||
return $"{ProxyTags.Value.Prefix}{Content}{ProxyTags.Value.Suffix}";
|
||||
|
||||
return Content;
|
||||
}
|
||||
return Content;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue