コード例 #1
0
ファイル: DSharpPlusDiscord.cs プロジェクト: lopezayl/Miunie
        public async Task SendMessageAsync(MiunieChannel mc, PhraseKey phraseKey, params object[] parameters)
        {
            var channel = await _discordClient.GetChannelAsync(mc.ChannelId);

            var msg = _lang.GetPhrase(phraseKey.ToString(), parameters);
            await channel.SendMessageAsync(msg);
        }
コード例 #2
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Returns a <see cref="System.String"/> that represents this instance.
 /// </summary>
 /// ------------------------------------------------------------------------------------
 public override string ToString()
 {
     return(PhraseKey.ToString());
 }