User variable in FileName #32

Closed
opened 2019-12-11 23:34:38 +01:00 by MadamJazzy · 2 comments
MadamJazzy commented 2019-12-11 23:34:38 +01:00 (Migrated from github.com)

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.

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.
Serraniel commented 2019-12-12 10:29:55 +01:00 (Migrated from github.com)

Thanks for your suggesstion. Will implement that.

Thanks for your suggesstion. Will implement that.
Serraniel commented 2019-12-12 19:25:24 +01:00 (Migrated from github.com)

New placeholders are implemented in new release: https://github.com/Serraniel/DiscordMediaLoader/releases/tag/v1.3.0.0

New placeholders are implemented in new release: https://github.com/Serraniel/DiscordMediaLoader/releases/tag/v1.3.0.0
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Serraniel/DiscordMediaLoader#32
No description provided.