mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 12:32:03 -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);
|
{ Amount = amount, User = user, JuicedAt = DateTimeOffset.UtcNow }, ctx);
|
||||||
await db.SaveChangesAsync(ctx);
|
await db.SaveChangesAsync(ctx);
|
||||||
if (juicerSettings[BuiltIn.Keys.JuiceAutoDeleteMsgDelay].Value == null) return;
|
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;
|
if (delay <= 0) return;
|
||||||
while (sentMsg.ChatMessageId == null)
|
while (sentMsg.ChatMessageId == null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user