Async PRAW
latest

Getting Started

  • Quick Start
  • Installing Async PRAW
  • Authenticating via OAuth
  • Configuring Async PRAW
  • Running Multiple Instances of Async PRAW
  • Logging in Async PRAW
  • Ratelimits
  • Frequently Asked Questions

Code Overview

  • The Reddit Instance
  • Working with Async PRAW’s Models
  • Exceptions in Async PRAW
  • Other Classes
    • Collection
    • CollectionModeration
    • SubredditCollections
    • SubredditCollectionsModeration
    • SubmissionFlair
    • SubredditFlair
    • SubredditFlairTemplates
    • SubredditLinkFlairTemplates
    • SubredditRedditorFlairTemplates
    • InlineGif
    • InlineImage
    • InlineMedia
    • InlineVideo
    • BaseModNotes
    • ModNote
    • ModNoteMixin
    • RedditModNotes
    • RedditorModNotes
    • SubredditModNotes
    • CommentModeration
    • RuleModeration
    • SubmissionModeration
    • SubredditModeration
    • SubredditRulesModeration
    • SubredditWidgetsModeration
    • ThingModerationMixin
    • UserSubredditModeration
    • WidgetModeration
    • WikiPageModeration
    • LiveContributorRelationship
    • LiveThreadContribution
    • LiveThreadStream
    • LiveUpdateContribution
    • ContributorRelationship
    • ModeratorRelationship
    • SubredditRelationship
    • SubredditEmoji
    • SubredditFilters
    • SubredditModerationStream
    • SubredditQuarantine
    • SubredditRemovalReasons
    • SubredditRules
    • SubredditStream
    • SubredditStylesheet
    • SubredditWidgets
    • SubredditWiki
    • Button
    • ButtonWidget
    • Calendar
    • CalendarConfiguration
    • CommunityList
    • CustomWidget
    • Hover
    • IDCard
    • Image
    • ImageData
    • ImageWidget
    • Menu
    • MenuLink
      • MenuLink
        • MenuLink.__init__()
        • MenuLink.parse()
    • ModeratorsWidget
    • PostFlairWidget
    • RulesWidget
    • Styles
    • Submenu
    • TextArea
    • Widget
    • AsyncPRAWBase
    • Auth
    • BaseList
    • CommentForest
    • CommentHelper
    • Config
    • DomainListing
    • DraftList
    • Emoji
    • FullnameMixin
    • InboxableMixin
    • ListingGenerator
    • ModAction
    • ModNote
    • ModeratedList
    • Modmail
    • ModmailMessage
    • PollData
    • PollOption
    • PartialRedditor
    • Preferences
    • RedditBase
    • RedditorList
    • RedditorStream
    • RemovalReason
    • Rule
    • Stylesheet
    • SubListing
    • SubredditMessage
    • Token Manager
    • Trophy
    • UserSubreddit
    • Util

Tutorials

  • Comment Extraction and Parsing
  • Working with Refresh Tokens
  • Submission Stream Reply Bot

Package Info

  • Change Log
  • Contributing to Async PRAW
  • Glossary
  • Migrating to Async PRAW
  • Migrating to PRAW 7.X
  • References
  • Index
Async PRAW
  • »
  • Other Classes »
  • MenuLink
  • Edit on GitHub

MenuLink¶

class asyncpraw.models.MenuLink(reddit: asyncpraw.Reddit, _data: Dict[str, Any] | None)¶

Class to represent a single link inside a Menu or Submenu.

Typical Attributes

Note

This table describes attributes that typically belong to objects of this class. Async PRAW dynamically provides the attributes that Reddit returns via the API. Since those attributes are subject to change on Reddit’s end, Async PRAW makes no effort to document any new/removed/changed attributes, other than to instruct you on how to discover what is available. As a result, this table of attributes may not be complete. See Determine Available Attributes of an Object for detailed information.

If you would like to add an attribute to this table, feel free to open a pull request.

Attribute

Description

text

The text of the menu link.

url

The URL that the menu item links to.

__init__(reddit: asyncpraw.Reddit, _data: Dict[str, Any] | None)¶

Initialize a AsyncPRAWBase instance.

Parameters:

reddit – An instance of Reddit.

classmethod parse(data: Dict[str, Any], reddit: asyncpraw.Reddit) → Any¶

Return an instance of cls from data.

Parameters:
  • data – The structured data.

  • reddit – An instance of Reddit.

Next Previous

© Copyright 2023, Joel Payne. Revision 41f6ba7f.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
stable
v7.6.1
v7.6.0
v7.5.0
v7.4.0
v7.3.1
v7.3.0
v7.2.0
v7.1.1
v7.1.0
upgrade_tests
Downloads
html
On Read the Docs
Project Home
Builds