Changed sender parameter to channel.
This commit is contained in:
@@ -17,10 +17,11 @@ namespace HermesSocketServer.Requests
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
public async Task<RequestResult> Grant(string sender, IDictionary<string, object>? data)
|
||||
public async Task<RequestResult> Grant(Channel channel, IDictionary<string, object> data)
|
||||
{
|
||||
_voices.Remove(data!["voice"].ToString());
|
||||
_logger.Information($"Deleted a voice by id [voice id: {data["voice"]}]");
|
||||
string voiceId = data["voice"].ToString()!;
|
||||
_voices.Remove(voiceId);
|
||||
_logger.Information($"Deleted a voice by id [voice id: {voiceId}]");
|
||||
return RequestResult.Successful(null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user