Emoji

class praw.models.reddit.emoji.Emoji(reddit, subreddit, name, _data=None)

An individual Emoji object.

Typical Attributes

This table describes attributes that typically belong to objects of this class. Since attributes are dynamically provided (see Determine Available Attributes of an Object), there is not a guarantee that these attributes will always be present, nor is this list necessarily comprehensive.

Attribute Description
name The name of the emoji.
url The URL of the emoji image.
__init__(reddit, subreddit, name, _data=None)

Construct an instance of the Emoji object.

delete()

Delete an emoji from this subreddit by Emoji.

To delete 'test' as an emoji on the subreddit 'praw_test' try:

reddit.subreddit('praw_test').emoji['test'].delete()
classmethod parse(data, reddit)

Return an instance of cls from data.

Parameters:
  • data – The structured data.
  • reddit – An instance of Reddit.