mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
add tell async and update SharedLibraryCore version
This commit is contained in:
@ -177,6 +177,7 @@ namespace SharedLibraryCore.Database.Models
|
||||
return e;
|
||||
}
|
||||
|
||||
[Obsolete]
|
||||
public void Tell(IEnumerable<string> messages)
|
||||
{
|
||||
foreach (var message in messages)
|
||||
@ -187,6 +188,14 @@ namespace SharedLibraryCore.Database.Models
|
||||
}
|
||||
}
|
||||
|
||||
public async Task TellAsync(IEnumerable<string> messages, CancellationToken token =default)
|
||||
{
|
||||
foreach (var message in messages)
|
||||
{
|
||||
await Tell(message).WaitAsync(Utilities.DefaultCommandTimeout, token);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// warn a client with given reason
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user