mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
fix: fixed user id in afk message dm
This commit is contained in:
@@ -126,13 +126,12 @@ public sealed class AfkService : INService, IReadyExecutor
|
|||||||
{
|
{
|
||||||
var st = SmartText.CreateFrom(msg);
|
var st = SmartText.CreateFrom(msg);
|
||||||
|
|
||||||
st = $"The user you've pinged ({arg.Author}) is AFK: " + st;
|
st = $"The user you've pinged (<#{mentionedUserId}>) is AFK: " + st;
|
||||||
|
|
||||||
var toDelete = await _mss.Response(arg.Channel)
|
var toDelete = await _mss.Response(arg.Channel)
|
||||||
.User(arg.Author)
|
.User(arg.Author)
|
||||||
.Message(uMsg)
|
.Message(uMsg)
|
||||||
.Text(st)
|
.Text(st)
|
||||||
.Sanitize(false)
|
|
||||||
.SendAsync();
|
.SendAsync();
|
||||||
|
|
||||||
toDelete.DeleteAfter(30);
|
toDelete.DeleteAfter(30);
|
||||||
|
Reference in New Issue
Block a user