Skip to content

Commit a09f1a5

Browse files
committed
feat: Support duration parameter for account muting
The `duration` parameter was added in v3.3.0, which takes the number of seconds to mute, instead of muting the account forever. ref. accounts API methods - Mastodon documentation - https://docs.joinmastodon.org/methods/accounts/#mute
1 parent 28882dc commit a09f1a5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/mastodon/rest/v1/account-repository.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ export interface UpdateCredentialsParams {
6262
export interface MuteAccountParams {
6363
/** Mute notifications in addition to statuses? Defaults to true. */
6464
readonly notifications?: boolean;
65+
/** Duration to mute in seconds. Defaults to 0 (indefinite). */
66+
readonly duration?: number;
6567
}
6668

6769
export interface CreateAccountNoteParams {

0 commit comments

Comments
 (0)