Skip to content

Commit

Permalink
feat: Support duration parameter for account muting
Browse files Browse the repository at this point in the history
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
  • Loading branch information
shuuji3 committed Sep 20, 2023
1 parent 28882dc commit a09f1a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mastodon/rest/v1/account-repository.ts
Expand Up @@ -62,6 +62,8 @@ export interface UpdateCredentialsParams {
export interface MuteAccountParams {
/** Mute notifications in addition to statuses? Defaults to true. */
readonly notifications?: boolean;
/** Duration to mute in seconds. Defaults to 0 (indefinite). */
readonly duration?: number;
}

export interface CreateAccountNoteParams {
Expand Down

0 comments on commit a09f1a5

Please sign in to comment.