.greetdm staggering to avoid ratelimits during raids

This commit is contained in:
Kwoth
2022-01-06 22:53:59 +01:00
parent 22183501fe
commit c0ce22a6b7
2 changed files with 47 additions and 19 deletions

View File

@@ -258,8 +258,7 @@ namespace NadekoBot.Modules.Administration
{
user = user ?? (IGuildUser) ctx.User;
var channel = await user.GetOrCreateDMChannelAsync();
var success = await _service.GreetDmTest(channel, user);
var success = await _service.GreetDmTest(user);
if (success)
await ctx.OkAsync();
else