public static void DeleteMessage(this MessageResponse response, ulong messageId)
 {
     DeleteMessage(response, response.Context.Request.ChannelId, messageId);
 }
 public static void DeleteMessage(this MessageResponse response, ulong channelId, ulong messageId)
 {
     response.Actions.Add(new DeleteMessageActionResult(channelId, messageId));
 }
 public static MessageBuilder Edit(this MessageResponse response, ResponseMessageSuccessArguments args)
 {
     return(Edit(response, args.Message.ChannelId, args.Message.Id));
 }
 public static MessageBuilder Edit(this MessageResponse response, IDiscordMessage message)
 {
     return(Edit(response, message.ChannelId, message.Id));
 }
Ejemplo n.º 5
0
        public static void React(this MessageResponse response, DiscordEmoji emoji)
        {
            var request = response.Context.Request;

            response.Actions.Add(new ReactActionResult(request.ChannelId, request.MessageId, emoji));
        }
Ejemplo n.º 6
0
 public static void React(this MessageResponse response, DiscordEmoji emoji, ulong channelId, ulong messageId)
 {
     response.Actions.Add(new ReactActionResult(channelId, messageId, emoji));
 }