User variable in FileName #32
Labels
No labels
beta
bug
dependencies
duplicate
enhancement
invalid
postponed
question
release: bugfix
release: major
release: minor
repository improvment
required
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Serraniel/DiscordMediaLoader#32
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is it possible to make the ever so small change to allow for %userid% to be used as part of the file scheme. So that a save could be something under the lines of.
%guild%%channel%%userid%%id% ...
Would be a popular feature i'm sure. To have the downloads be able to be organized by the UserID so you know who's image it is without having to go searching for message IDs and hope that the file has not been deleted. Easier to filter by UserID instead of UserName because UserID is unique and cannot be changed where with username you have the discriminator to worry about and then people can change their names. So UserID would be able to be used to create a unique folder inside the server \channel\ folder that holds all of that users images.
If i understand the code correctly. I would wager this could be done rather easily by adding
.Replace("%userid%", message.User.id)
into the JobScheduler.cs at approx line 235.
But then again i know hardly nothing about the .net wrapper for Discord, i use python hense why i don't attempt to make the change to the local files myself. And i kinda like having the .exe file to run so there would be no way for me to change the code in that one i don't think lol.
Thanks for your suggesstion. Will implement that.
New placeholders are implemented in new release: https://github.com/Serraniel/DiscordMediaLoader/releases/tag/v1.3.0.0