Suggestion: Add has_muted, is_muted_by, mute, unmute methods in Steem Python Library
I have been studying the official Steem Python library at https://github.com/steemit/steem-python and IMHO it lacks of checking if any given ID is muted by the Account. Simply put, the has_muted
is useful in checking if current account has muted a given ID, and unmute
will simply unmute the ID. These two can be described by the following:
id = Account("justyy")
if id.has_muted("someone"):
id.unmute("someone")
Similarly, is_muted_by
checks the other way around and mute
will mute the given ID:
id = Account("justyy")
if id.is_muted_by("someone"):
id.mute("someone")
These four methods should be a great add-on features to the steem python library!
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the code.
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
就不能加两行中文吗?!
utopian 除了tutorial 只能是英文的。。。。
这样呀,原来是这样,唉英语不好表示闹心死了
是啊,我们都看不懂,老想看。
这文 是专门写给utopian的,主要是建议给 steem python 库加上几个方法。
看不懂,过来看热闹
你真是卖鱼的么?
全称是"年近30依然过得不如楼下卖鱼的"
哈哈哈。
Hey @justyy I am @utopian-io. I have just upvoted you!
Achievements
Suggestions
Get Noticed!
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x