Exiled-Team / DiscordIntegration

GNU General Public License v3.0
13 stars 37 forks source link

[BUG] #143

Closed stefanocep closed 6 months ago

stefanocep commented 11 months ago

uhhh i think its a problem. but my 2 braincells fighting for the 3rd place dont work!!!

[2023-11-01 05:02:26.513 +01:00] [ERROR] [Exiled.API] Command with same name has already registered! Command: jail [2023-11-01 05:02:26.538 +01:00] [ERROR] [DiscordIntegration] HarmonyLib.HarmonyException: Patching exception in method static System.Void Exiled.API.Features.Log::Error(System.String message) ---> System.Reflection.AmbiguousMatchException: Ambiguous match in Harmony patch for DiscordIntegration.Patches.ErrorLoggingPatch:LogError ---> System.Reflection.AmbiguousMatchException: Ambiguous match found. at System.RuntimeType.GetMethodImplCommon (System.String name, System.Int32 genericParameterCount, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConv, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00050] in <05089c1b6989455fb1452c627044bac4>:0 at System.RuntimeType.GetMethodImpl (System.String name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConv, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00000] in <05089c1b6989455fb1452c627044bac4>:0 at System.Type.GetMethod (System.String name, System.Reflection.BindingFlags bindingAttr) [0x0000e] in <05089c1b6989455fb1452c627044bac4>:0 at HarmonyLib.AccessTools+<>c__DisplayClass27_0.b0 (System.Type t) [0x00000] in <0020ee40255b4dc7a0eb8b2a76225b38>:0 at HarmonyLib.AccessTools.FindIncludingBaseTypes[T] (System.Type type, System.Func`2[T,TResult] func) [0x00000] in <0020ee40255b4dc7a0eb8b2a76225b38>:0 at HarmonyLib.AccessTools.Method (System.Type type, System.String name, System.Type[] parameters, System.Type[] generics) [0x0004b] in <0020ee40255b4dc7a0eb8b2a76225b38>:0 --- End of inner exception stack trace --- at HarmonyLib.AccessTools.Method (System.Type type, System.String name, System.Type[] parameters, System.Type[] generics) [0x0008e] in <0020ee40255b4dc7a0eb8b2a76225b38>:0 at DiscordIntegration.Patches.ErrorLoggingPatch+d2.MoveNext () [0x000d4] in <3e62efeb78664d0bb27a52364d5e3c90>:0 at System.Collections.Generic.List1[T].AddEnumerable (System.Collections.Generic.IEnumerable1[T] enumerable) [0x00059] in <05089c1b6989455fb1452c627044bac4>:0 at System.Collections.Generic.List1[T]..ctor (System.Collections.Generic.IEnumerable1[T] collection) [0x00062] in <05089c1b6989455fb1452c627044bac4>:0 at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x00018] in <a3536978e9984063a5ca6c790db4d471>:0 at HarmonyLib.CodeTranspiler.GetResult (System.Reflection.Emit.ILGenerator generator, System.Reflection.MethodBase method) [0x00051] in <0020ee40255b4dc7a0eb8b2a76225b38>:0 at HarmonyLib.MethodBodyReader.FinalizeILCodes (HarmonyLib.Emitter emitter, System.Collections.Generic.List1[T] transpilers, System.Collections.Generic.List1[T] endLabels, System.Boolean& hasReturnCode) [0x0014a] in <0020ee40255b4dc7a0eb8b2a76225b38>:0 at HarmonyLib.MethodCopier.Finalize (HarmonyLib.Emitter emitter, System.Collections.Generic.List1[T] endLabels, System.Boolean& hasReturnCode) [0x00000] in <0020ee40255b4dc7a0eb8b2a76225b38>:0 at HarmonyLib.MethodPatcher.CreateReplacement (System.Collections.Generic.Dictionary2[System.Int32,HarmonyLib.CodeInstruction]& finalInstructions) [0x002be] in <0020ee40255b4dc7a0eb8b2a76225b38>:0 at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00057] in <0020ee40255b4dc7a0eb8b2a76225b38>:0 at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs1+Job[T] job) [0x000bb] in <0020ee40255b4dc7a0eb8b2a76225b38>:0 --- End of inner exception stack trace --- at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0010f] in <0020ee40255b4dc7a0eb8b2a76225b38>:0 at HarmonyLib.PatchClassProcessor.Patch () [0x00093] in <0020ee40255b4dc7a0eb8b2a76225b38>:0 at HarmonyLib.Harmony.b__10_0 (System.Type type) [0x00007] in <0020ee40255b4dc7a0eb8b2a76225b38>:0 at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Action1[T] action) [0x00014] in <0020ee40255b4dc7a0eb8b2a76225b38>:0 at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <0020ee40255b4dc7a0eb8b2a76225b38>:0 at HarmonyLib.Harmony.PatchAll () [0x0001b] in <0020ee40255b4dc7a0eb8b2a76225b38>:0 at DiscordIntegration.DiscordIntegration.OnEnabled () [0x00030] in <3e62efeb78664d0bb27a52364d5e3c90>:0