- Improved .curtrs (It will now have a lot more useful data in the database, show Tx ids, and be partially localized)

- Added .curtr command which lets you see full information about one of your own transactions with the specified id
- Added .WithAuthor(IUser) extension for embedbuilder
This commit is contained in:
Kwoth
2022-01-25 05:55:38 +01:00
parent 81533b7f69
commit 3910dc7499
18 changed files with 3077 additions and 70 deletions

View File

@@ -4,9 +4,9 @@ namespace NadekoBot.Services.Database.Models;
public class CurrencyTransaction : DbEntity
{
public long Amount { get; set; }
public string Reason { get; set; }
public string Note { get; set; }
public ulong UserId { get; set; }
public CurrencyTransaction Clone()
=> new() { Amount = Amount, Reason = Reason, UserId = UserId };
public string Type { get; set; }
public string Extra { get; set; }
public ulong? OtherId { get; set; }
}

View File

@@ -14,7 +14,7 @@ public class FilterChannelId : DbEntity
public override int GetHashCode()
=> ChannelId.GetHashCode();
}
// todo check if filterwords migration works
public class FilterWordsChannelId : DbEntity
{
public ulong ChannelId { get; set; }