Refactored enum name retrieval for components

This commit is contained in:
Thorsten Sommer 2025-10-20 15:51:27 +02:00
parent c36c83dad5
commit 2f92ced700
No known key found for this signature in database
GPG Key ID: B0B7E2FC074BF1F5

View File

@ -45,7 +45,7 @@ public static class ComponentsExtensions
Components.CHAT => TB("New Chat"), Components.CHAT => TB("New Chat"),
_ => Enum.GetName(typeof(Components), component)!, _ => Enum.GetName(component)!,
}; };
public static ComponentsData GetData(this Components destination) => destination switch public static ComponentsData GetData(this Components destination) => destination switch