Skip to content

Commit 15d1fb3

Browse files
committed
fix(gateway): remove duplicate OnVoiceChannelStatusUpdate method definitions
Fixed CS0111 build error caused by duplicate OnVoiceChannelStatusUpdate method definitions in EventDispatcherExtensions.cs. The methods were defined twice (lines 679-686 and 1013-1020). Removed the duplicate definitions at lines 1008-1020, keeping the original async and sync overloads.
1 parent a17e03a commit 15d1fb3

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

src/PawSharp.Gateway/Events/EventDispatcherExtensions.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,20 +1005,6 @@ public static IDisposable OnIntegrationDelete(this EventDispatcher dispatcher, F
10051005
public static IDisposable OnIntegrationDelete(this EventDispatcher dispatcher, Action<IntegrationDeleteEvent> handler)
10061006
=> dispatcher.On("INTEGRATION_DELETE", handler);
10071007

1008-
// Voice Channel Status Events
1009-
1010-
/// <summary>
1011-
/// Subscribes to VOICE_CHANNEL_STATUS_UPDATE events.
1012-
/// </summary>
1013-
public static IDisposable OnVoiceChannelStatusUpdate(this EventDispatcher dispatcher, Func<VoiceChannelStatusUpdateEvent, Task> handler)
1014-
=> dispatcher.On("VOICE_CHANNEL_STATUS_UPDATE", handler);
1015-
1016-
/// <summary>
1017-
/// Subscribes to VOICE_CHANNEL_STATUS_UPDATE events (synchronous).
1018-
/// </summary>
1019-
public static IDisposable OnVoiceChannelStatusUpdate(this EventDispatcher dispatcher, Action<VoiceChannelStatusUpdateEvent> handler)
1020-
=> dispatcher.On("VOICE_CHANNEL_STATUS_UPDATE", handler);
1021-
10221008
// User Events
10231009

10241010
/// <summary>

0 commit comments

Comments
 (0)