/**
  *  DiscordReply
  *  Replies in the text channel using the parent module.
  *
  *  @param s - Message to reply in the channel
  */
 protected async void DiscordReply(string s)
 {
     if (m_ParentModule == null)
     {
         return;
     }
     await m_ParentModule.ServiceReplyAsync(s);
 }
Example #2
0
 // Replies in the text channel using the parent module and optional embed.
 protected async void DiscordReply(string s, EmbedBuilder emb = null)
 {
     if (m_ParentModule == null)
     {
         return;
     }
     if (emb != null)
     {
         await m_ParentModule.ServiceReplyAsync(s, emb);
     }
     else
     {
         await m_ParentModule.ServiceReplyAsync(s);
     }
 }
        protected async void DiscordReply(string s, EmbedBuilder emb = null, bool noinline = false)
        {
            if (_ParentModule == null)
            {
                return;
            }

            if (noinline == true)
            {
                await _ParentModule.ServiceReplyNoInlineAsync(s, emb);
            }
            else
            {
                await _ParentModule.ServiceReplyAsync(s, emb);
            }
        }