Skip to contents

Site

lemmy_get_site()
Gets the site, and your user data.
lemmy_create_site()
Create your site.
lemmy_edit_site()
Edit your site.
lemmy_leave_admin()
Leave the Site admins.
lemmy_get_modlog()
Get the modlog.
lemmy_search()
Search lemmy.
lemmy_resolve_object()
Fetch a non-local / federated object.

Communities

lemmy_create_community()
Create a new community.
lemmy_get_community()
Get / fetch a community.
lemmy_edit_community()
Edit a community.
lemmy_list_communities()
List communities, with various filters.
lemmy_follow_community()
Follow / subscribe to a community.
lemmy_block_community()
Block a community.
lemmy_delete_community()
Delete a community.
lemmy_remove_community()
A moderator remove for a community.
lemmy_transfer_community()
Transfer your community to an existing moderator.
lemmy_ban_from_community()
Ban a user from a community.
lemmy_add_mod_to_community()
Add a moderator to your community.

Posts

lemmy_create_post()
Create a post.
lemmy_get_post()
Get / fetch a post.
lemmy_edit_post()
Edit a post.
lemmy_delete_post()
Delete a post.
lemmy_remove_post()
A moderator remove for a post.
lemmy_mark_post_as_read()
Mark a post as read.
lemmy_lock_post()
A moderator can lock a post ( IE disable new comments ).
lemmy_feature_post()
A moderator can feature a community post ( IE stick it to the top of a community ).
lemmy_get_posts()
Get / fetch posts, with various filters.
lemmy_like_post()
Like / vote on a post.
lemmy_save_post()
Save a post.
lemmy_create_post_report()
Report a post.
lemmy_resolve_post_report()
Resolve a post report. Only a mod can do this.
lemmy_list_post_reports()
List post reports.
lemmy_get_site_metadata()
Fetch metadata for any given site.

Comments

lemmy_create_comment()
Create a comment.
lemmy_edit_comment()
Edit a comment.
lemmy_delete_comment()
Delete a comment.
lemmy_remove_comment()
A moderator remove for a comment.
lemmy_mark_comment_reply_as_read()
Mark a comment as read.
lemmy_like_comment()
Like / vote on a comment.
lemmy_save_comment()
Save a comment.
lemmy_distinguish_comment()
Distinguishes a comment (speak as moderator)
lemmy_get_comments()
Get / fetch comments.
lemmy_get_comment()
Get / fetch comment.
lemmy_create_comment_report()
Report a comment.
lemmy_resolve_comment_report()
Resolve a comment report. Only a mod can do this.
lemmy_list_comment_reports()
List comment reports.

Private messages

lemmy_get_private_messages()
Get / fetch private messages.
lemmy_create_private_message()
Create a private message.
lemmy_edit_private_message()
Edit a private message.
lemmy_delete_private_message()
Delete a private message.
lemmy_mark_private_message_as_read()
Mark a private message as read.
lemmy_create_private_message_report()
Create a report for a private message.
lemmy_resolve_private_message_report()
Resolve a report for a private message.
lemmy_list_private_message_reports()
List private message reports.

Account & Users

lemmy_register()
Register a new user.
lemmy_login()
Log into lemmy.
lemmy_get_person_details()
Get the details for a person.
lemmy_get_person_mentions()
Get mentions for your user.
lemmy_mark_person_mention_as_read()
Mark a person mention as read.
lemmy_get_replies()
Get comment replies.
lemmy_ban_person()
Ban a person from your site.
lemmy_get_banned_persons()
Get a list of banned users
lemmy_block_person()
Block a person.
lemmy_get_captcha()
Fetch a Captcha.
lemmy_delete_account()
Delete your account.
lemmy_password_reset()
Reset your password.
lemmy_password_change_after_reset()
Change your password from an email / token based reset.
lemmy_mark_all_as_read()
Mark all replies as read.
lemmy_save_user_settings()
Save your user settings.
lemmy_change_password()
Change your user password.
lemmy_get_report_count()
Get counts for your reports
lemmy_get_unread_count()
Get your unread counts
lemmy_verify_email()
Verify your email

Admin

lemmy_add_admin()
Add an admin to your site.
lemmy_get_unread_registration_application_count()
Get the unread registration applications count.
lemmy_list_registration_applications()
List the registration applications.
lemmy_approve_registration_application()
Approve a registration application
lemmy_purge_person()
Purge / Delete a person from the database.
lemmy_purge_community()
Purge / Delete a community from the database.
lemmy_purge_post()
Purge / Delete a post from the database.
lemmy_purge_comment()
Purge / Delete a comment from the database.
lemmy_create_custom_emoji()
Create a new custom emoji
lemmy_edit_custom_emoji()
Edit an existing custom emoji
lemmy_delete_custom_emoji()
Delete a custom emoji
lemmy_get_federated_instances()
Fetch federated instances.