[TempRoles] Allow `[p]temprole add` to overwrite the original duration if higher than remaining.
emshov74 opened this issue · 5 comments
What cog is this feature request for?
temproles
Describe the feature request in as much detail as possible
The temproles assign command returns a "
Could this be changed to where the duration of a temprole gets overwritten by the higher value?
So for example:
- If user has 3d left and a command is issued for the same role with 7d duration, the new duration is 7d;
- If user has 20d left and a command is issued for the same role with 7d duration, the duration remains 20d
Thank you for your time
Hello,
I'm thinking of adding this feature, but maybe with a confirmation before overriding?
Thanks for your suggestion,
Have a nice day,
AAA3A
Maybe make it default to prompt for confirmation but also make it if you enter something like a "noconfirm" flag in the command that it just overwrites? Would be a nice thing for custom commands and the like
Or make a [p]temproles edit [confirmation=False] <member> <role> <new_duration>
command? [p]temprole add
would call it if the temprole have to be override.
I'm fine with whatever you can get to work, since I am a very bad programmer :))