class_docstr: Class for handling Discord notifications
      
class_docstr_tok: ["Class","for","handling","Discord","notifications"]
docstr: Initialize DiscordNotifier class
  
  Args:
      webhook (str): Discord web hook to allow message sending.
      username (str): Display name for the discord bot.
      avatar (str, optional): Defaults to None. Url of an image to use as an avatar.
docstr_tok: ["Initialize","DiscordNotifier","class","Args",":","webhook","(","str",")",":","Discord","web","hook","to","allow","message","sending",".","username","(","str",")",":","Display","name","for","the","discord","bot",".","avatar","(","str",",","optional",")",":","Defaults","to","None",".","Url","of","an","image","to","use","as","an","avatar","."]
code: def __init__(self, webhook, username, avatar=None):
      """Initialize DiscordNotifier class
  
      Args:
          webhook (str): Discord web hook to allow message sending.
          username (str): Display name for the discord bot.
          avatar (str, optional): Defaults to None. Url of an image to use as an avatar.
      """
  
      self.logger = structlog.get_logger()
      self.discord_username = username
      self.discord_client = Webhook(webhook, avatar_url=avatar)
  
imports: import structlog
  from webcord import Webhook
label_desc: Use image node_id 1 to create a new DiscordNotifier object  with example: obj = DiscordNotifier(webhook, username, avatar)