#32 added placeholder for username and userid in target filename
This commit is contained in:
parent
945a92b995
commit
a65e0adb6c
|
@ -247,7 +247,9 @@ namespace DML.AppCore.Classes
|
|||
.Replace("%channel%", channelName)
|
||||
.Replace("%timestamp%", message.CreatedAt.UtcDateTime.ToUnixTimeStamp().ToString())
|
||||
.Replace("%name%", a.Filename)
|
||||
.Replace("%id%", a.Id.ToString());
|
||||
.Replace("%id%", a.Id.ToString())
|
||||
.Replace("%userid%", message.Author.Id.ToString())
|
||||
.Replace("%username%", message.Author.Username);
|
||||
|
||||
if (extensionRequired)
|
||||
fileName += Path.GetExtension(a.Filename);
|
||||
|
|
Loading…
Reference in a new issue