mirror of
				https://gitlab.com/Deukhoofd/DeukBot4.git
				synced 2025-10-27 17:00:05 +00:00 
			
		
		
		
	Fix silencing always defaulting to 5 minutes
This commit is contained in:
		| @@ -210,7 +210,7 @@ namespace DeukBot4.MessageHandlers.CommandHandler | |||||||
|             } |             } | ||||||
|  |  | ||||||
|             await user.AddRoleAsync(silencedRole); |             await user.AddRoleAsync(silencedRole); | ||||||
|             if (span.Seconds <= 0) |             if (span.TotalSeconds <= 0) | ||||||
|                 span = TimeSpan.FromMinutes(5); |                 span = TimeSpan.FromMinutes(5); | ||||||
|             await Task.Delay(span); |             await Task.Delay(span); | ||||||
|             await user.RemoveRoleAsync(silencedRole); |             await user.RemoveRoleAsync(silencedRole); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user