Small Async fix
This commit is contained in:
parent
7d0b0c4634
commit
a004ab4290
1 changed files with 2 additions and 2 deletions
|
@ -149,8 +149,8 @@ namespace Geekbot.net
|
||||||
Console.WriteLine(channel.Guild.Name + " - " + message.Channel + " - " + message.Author.Username + " - " + message.Content);
|
Console.WriteLine(channel.Guild.Name + " - " + message.Channel + " - " + message.Author.Username + " - " + message.Content);
|
||||||
|
|
||||||
var statsRecorder = new StatsRecorder(message, redis);
|
var statsRecorder = new StatsRecorder(message, redis);
|
||||||
Task.Run(() => statsRecorder.UpdateUserRecordAsync());
|
Task.Run(async () => await statsRecorder.UpdateUserRecordAsync());
|
||||||
Task.Run(() => statsRecorder.UpdateGuildRecordAsync());
|
Task.Run(async () => await statsRecorder.UpdateGuildRecordAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task HandleUserJoined(SocketGuildUser user)
|
public async Task HandleUserJoined(SocketGuildUser user)
|
||||||
|
|
Loading…
Reference in a new issue