public async Task Volt( string message, bool repliable = false, [Summary("channel", "send message to target channel")] SocketChannel channel = null, [Summary("channel-name", "send message to target channel by name")] String channelName = null ) { if (Context.Guild == null) { var function = Controllers.Messages.Send.SendMessageToChannel(Context.Channel, repliable == true, new InteractionBasedContext(Context, Responder), false); await function("", message); await RespondAsync("Sent!", ephemeral : true); return; } if (channel != null) { await Controllers.Messages.SendToGuild.SendToChannelById(channel.Id, new InteractionBasedContext(Context, Responder), message, repliable, _database); return; } if (channelName != null) { await SendToGuild.LookupAndSendAsync(Context.Guild, new InteractionBasedContext(Context, Responder), channelName, message, repliable, _database); return; } await SendToGuild.LookupAndSendAsync(Context.Guild, new InteractionBasedContext(Context, Responder), Context.Channel.Name, message, repliable, _database); }
public async Task SendServerRepliable(string guildName, string channelName, [Remainder] string message) { await SendToGuild.PerformAsync(Context, guildName, channelName, message, true, _database); }
public async Task SendServer(string guildName, string channelName, [Remainder] string message) { await SendToGuild.PerformAsync(new CommandBasedContext(Context), guildName, channelName, message, false, _database); }