mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Forgot about the type conversion feature
This commit is contained in:
@@ -51,7 +51,7 @@ public class JuiceCommand : ICommand
|
||||
{ Amount = amount, User = user, JuicedAt = DateTimeOffset.UtcNow }, ctx);
|
||||
await db.SaveChangesAsync(ctx);
|
||||
if (juicerSettings[BuiltIn.Keys.JuiceAutoDeleteMsgDelay].Value == null) return;
|
||||
var delay = int.Parse(juicerSettings[BuiltIn.Keys.JuiceAutoDeleteMsgDelay].Value!);
|
||||
var delay = juicerSettings[BuiltIn.Keys.JuiceAutoDeleteMsgDelay].ToType<int>();
|
||||
if (delay <= 0) return;
|
||||
while (sentMsg.ChatMessageId == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user