[help] [c#] Command attribute issues

Taking a mess around with the C# attributes and when trying to use multiple attributes on a single method, I’m receiving an AmbiguousMatchException.

On chasing the error stack back, it looks like it’s related to this link here where it’s only requesting the single GetCustomAttribute, rather than GetCustomAttributes with a wrapper to resolve that.

Test code:

[Command("commandOne")]
[Command("commandTwo")]
public void OnSomeEvent(int src, List<object> args, string raw)
{
    TriggerClientEvent(Players[src], "someEvent");
}

Error Stack:

Registering command failed: System.Reflection.AmbiguousMatchException: RFLCT.AmbigCust
  at System.Attribute.GetCustomAttribute (System.Reflection.MemberInfo element, System.Type attributeType, System.Boolean inherit) [0x00026] in <fbc4ec45371543bfba3678ebb82caf6d>:0
  at System.Attribute.GetCustomAttribute (System.Reflection.MemberInfo element, System.Type attributeType) [0x00000] in <fbc4ec45371543bfba3678ebb82caf6d>:0
  at System.Reflection.CustomAttributeExtensions.GetCustomAttribute (System.Reflection.MemberInfo element, System.Type attributeType) [0x00000] in <fbc4ec45371543bfba3678ebb82caf6d>:0
  at System.Reflection.CustomAttributeExtensions.GetCustomAttribute[T] (System.Reflection.MemberInfo element) [0x00000] in <fbc4ec45371543bfba3678ebb82caf6d>:0
  at CitizenFX.Core.BaseScript.InitializeOnAdd () [0x001ff] in C:\gl\builds\4ff63adb\0\cfx\fivem\code\client\clrcore\BaseScript.cs:369