Fixed nullref in repeaters
This commit is contained in:
parent
42c394f53b
commit
b86589c15a
@ -114,11 +114,10 @@ namespace NadekoBot.Modules.Utility
|
|||||||
source.Cancel();
|
source.Cancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString() =>
|
||||||
{
|
$"{Channel?.Mention ?? $"⚠<#{Repeater.ChannelId}>" } " +
|
||||||
return
|
$"| {(int) Repeater.Interval.TotalHours}:{Repeater.Interval:mm} " +
|
||||||
$"{Channel.Mention} | {(int) Repeater.Interval.TotalHours}:{Repeater.Interval:mm} | {Repeater.Message.TrimTo(33)}";
|
$"| {Repeater.Message.TrimTo(33)}";
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static RepeatCommands()
|
static RepeatCommands()
|
||||||
|
Loading…
Reference in New Issue
Block a user