Fixed nullref in repeaters
This commit is contained in:
		@@ -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()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user