def __user_info__(user_id): is_gmuted = sql.is_user_gmuted(user_id) text = "Globalnie wyciszony: <b>{}</b>" if is_gmuted: text = text.format("Tak") user = sql.get_gmuted_user(user_id) if user.reason: text += "\nPowód: {}".format(html.escape(user.reason)) else: text = text.format("Nie") return text
def __user_info__(user_id): is_gmuted = sql.is_user_gmuted(user_id) text = "Globally muted: <b>{}</b>" if is_gmuted: text = text.format("Yes") user = sql.get_gmuted_user(user_id) if user.reason: text += "\nReason: {}".format(html.escape(user.reason)) else: text = text.format("No") return text
def __user_info__(user_id): is_gmuted = sql.is_user_gmuted(user_id) text = "Qlobal olaraq susubmu: <b>{}</b>" if is_gmuted: text = text.format("Hə") user = sql.get_gmuted_user(user_id) if user.reason: text += "\nSəbəb: {}".format(html.escape(user.reason)) else: text = text.format("Yox") return text