diff --git a/docs/manual.md b/docs/manual.md index 459aada..4562f77 100644 --- a/docs/manual.md +++ b/docs/manual.md @@ -533,7 +533,7 @@ Additional flags for polls. | `poll-allows-multiple-choices` | boolean | false | Set to `true` to allow users to make multiple choices. | false | | `poll-hides-vote-counts` | boolean | false | Set to `true` to hide the vote count until the poll is closed. | false | | `poll-option` | string | true | An option in the poll. Use this flag multiple times to set multiple options. | | -| `poll-expires-in` | string | false | The duration in which the poll is open for. | | +| `poll-expires-in` | [time duration value](tips_and_tricks.md#the-time-duration-value) | false | The duration in which the poll is open for. | | ### Delete a status diff --git a/docs/tips_and_tricks.md b/docs/tips_and_tricks.md index d4bdcee..afc430a 100644 --- a/docs/tips_and_tricks.md +++ b/docs/tips_and_tricks.md @@ -4,15 +4,15 @@ The time duration value is a custom [flag value](https://pkg.go.dev/flag#Value) that converts a string input into a duration of time. A typical string input would be in the form of something like `"3 days, 12 hours and 39 minutes"`. -The value can parse units in days, hours, minutes and seconds. +The value can convert units in days, hours, minutes and seconds. -To ensure that your string input is parsed correctly there are simple rules to follow. +To ensure that your string input is converted correctly there are simple rules to follow. - The input must be wrapped in quotes. -- Use `day` or `days` to parse the number of days. -- Use `hour` or `hours` to parse the number of hours. -- Use `minute` or `minutes` to parse the number of minutes. -- Use `second` or `seconds` to parse the number of seconds. +- Use `day` or `days` to convert the number of days. +- Use `hour` or `hours` to convert the number of hours. +- Use `minute` or `minutes` to convert the number of minutes. +- Use `second` or `seconds` to convert the number of seconds. - There must be at least one space between the number and the unit of time.
E.g. `"7 days"` is valid, but `"7days"` is invalid.