Is it possible to “pause” a message from being sent to check it?











up vote
-1
down vote

favorite












What I mean by this is, I want to make a moderation bot, but something that'd be cool is to pause a messaging being sent while the bot checks it, and then approve it to be sent. The reason I'd like to do this is so any inappropriate content cannot be seen at all, but if I didn't do this then people could see the bad content for a second or two before the bot edits or deletes it.










share|improve this question







New contributor




Jacob is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Unfortunately, this question is too broad as written, and may draw negative feedback as a result. Aside from the fact that you really just asked a yes/no question (but probably wanted to ask how), there are too many possible ways that something like this could be done to answer in this format. It is better to show what you have attempted so far and ask about the challenges you are having with your real code. see How to Ask.
    – Claies
    Nov 17 at 14:53










  • Yeah, thanks for the response. The point is, I don't know where to even start with this and wanted to know if and how this can be done.
    – Jacob
    Nov 17 at 15:04










  • Being that this is a QA site and not a tutorial site, it's hard to offer a "this is how you start" kind of answer; as to if this can be done, the more experienced you get in programming the more you realize that the answer to that is rarely ever no.
    – Claies
    Nov 17 at 15:06










  • I was mainly wondering if the Discord bot API allows for it.
    – Jacob
    Nov 17 at 15:08










  • Yes, of course it does, there are at least 3 or 4 ways to do this. you could listen for the send event or listen for the raw stream events, as examples. discordpy.readthedocs.io/en/latest/api.html#discord.on_message.
    – Claies
    Nov 17 at 15:16















up vote
-1
down vote

favorite












What I mean by this is, I want to make a moderation bot, but something that'd be cool is to pause a messaging being sent while the bot checks it, and then approve it to be sent. The reason I'd like to do this is so any inappropriate content cannot be seen at all, but if I didn't do this then people could see the bad content for a second or two before the bot edits or deletes it.










share|improve this question







New contributor




Jacob is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Unfortunately, this question is too broad as written, and may draw negative feedback as a result. Aside from the fact that you really just asked a yes/no question (but probably wanted to ask how), there are too many possible ways that something like this could be done to answer in this format. It is better to show what you have attempted so far and ask about the challenges you are having with your real code. see How to Ask.
    – Claies
    Nov 17 at 14:53










  • Yeah, thanks for the response. The point is, I don't know where to even start with this and wanted to know if and how this can be done.
    – Jacob
    Nov 17 at 15:04










  • Being that this is a QA site and not a tutorial site, it's hard to offer a "this is how you start" kind of answer; as to if this can be done, the more experienced you get in programming the more you realize that the answer to that is rarely ever no.
    – Claies
    Nov 17 at 15:06










  • I was mainly wondering if the Discord bot API allows for it.
    – Jacob
    Nov 17 at 15:08










  • Yes, of course it does, there are at least 3 or 4 ways to do this. you could listen for the send event or listen for the raw stream events, as examples. discordpy.readthedocs.io/en/latest/api.html#discord.on_message.
    – Claies
    Nov 17 at 15:16













up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











What I mean by this is, I want to make a moderation bot, but something that'd be cool is to pause a messaging being sent while the bot checks it, and then approve it to be sent. The reason I'd like to do this is so any inappropriate content cannot be seen at all, but if I didn't do this then people could see the bad content for a second or two before the bot edits or deletes it.










share|improve this question







New contributor




Jacob is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











What I mean by this is, I want to make a moderation bot, but something that'd be cool is to pause a messaging being sent while the bot checks it, and then approve it to be sent. The reason I'd like to do this is so any inappropriate content cannot be seen at all, but if I didn't do this then people could see the bad content for a second or two before the bot edits or deletes it.







javascript node.js discord.js






share|improve this question







New contributor




Jacob is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Jacob is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Jacob is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 17 at 14:37









Jacob

31




31




New contributor




Jacob is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Jacob is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Jacob is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Unfortunately, this question is too broad as written, and may draw negative feedback as a result. Aside from the fact that you really just asked a yes/no question (but probably wanted to ask how), there are too many possible ways that something like this could be done to answer in this format. It is better to show what you have attempted so far and ask about the challenges you are having with your real code. see How to Ask.
    – Claies
    Nov 17 at 14:53










  • Yeah, thanks for the response. The point is, I don't know where to even start with this and wanted to know if and how this can be done.
    – Jacob
    Nov 17 at 15:04










  • Being that this is a QA site and not a tutorial site, it's hard to offer a "this is how you start" kind of answer; as to if this can be done, the more experienced you get in programming the more you realize that the answer to that is rarely ever no.
    – Claies
    Nov 17 at 15:06










  • I was mainly wondering if the Discord bot API allows for it.
    – Jacob
    Nov 17 at 15:08










  • Yes, of course it does, there are at least 3 or 4 ways to do this. you could listen for the send event or listen for the raw stream events, as examples. discordpy.readthedocs.io/en/latest/api.html#discord.on_message.
    – Claies
    Nov 17 at 15:16


















  • Unfortunately, this question is too broad as written, and may draw negative feedback as a result. Aside from the fact that you really just asked a yes/no question (but probably wanted to ask how), there are too many possible ways that something like this could be done to answer in this format. It is better to show what you have attempted so far and ask about the challenges you are having with your real code. see How to Ask.
    – Claies
    Nov 17 at 14:53










  • Yeah, thanks for the response. The point is, I don't know where to even start with this and wanted to know if and how this can be done.
    – Jacob
    Nov 17 at 15:04










  • Being that this is a QA site and not a tutorial site, it's hard to offer a "this is how you start" kind of answer; as to if this can be done, the more experienced you get in programming the more you realize that the answer to that is rarely ever no.
    – Claies
    Nov 17 at 15:06










  • I was mainly wondering if the Discord bot API allows for it.
    – Jacob
    Nov 17 at 15:08










  • Yes, of course it does, there are at least 3 or 4 ways to do this. you could listen for the send event or listen for the raw stream events, as examples. discordpy.readthedocs.io/en/latest/api.html#discord.on_message.
    – Claies
    Nov 17 at 15:16
















Unfortunately, this question is too broad as written, and may draw negative feedback as a result. Aside from the fact that you really just asked a yes/no question (but probably wanted to ask how), there are too many possible ways that something like this could be done to answer in this format. It is better to show what you have attempted so far and ask about the challenges you are having with your real code. see How to Ask.
– Claies
Nov 17 at 14:53




Unfortunately, this question is too broad as written, and may draw negative feedback as a result. Aside from the fact that you really just asked a yes/no question (but probably wanted to ask how), there are too many possible ways that something like this could be done to answer in this format. It is better to show what you have attempted so far and ask about the challenges you are having with your real code. see How to Ask.
– Claies
Nov 17 at 14:53












Yeah, thanks for the response. The point is, I don't know where to even start with this and wanted to know if and how this can be done.
– Jacob
Nov 17 at 15:04




Yeah, thanks for the response. The point is, I don't know where to even start with this and wanted to know if and how this can be done.
– Jacob
Nov 17 at 15:04












Being that this is a QA site and not a tutorial site, it's hard to offer a "this is how you start" kind of answer; as to if this can be done, the more experienced you get in programming the more you realize that the answer to that is rarely ever no.
– Claies
Nov 17 at 15:06




Being that this is a QA site and not a tutorial site, it's hard to offer a "this is how you start" kind of answer; as to if this can be done, the more experienced you get in programming the more you realize that the answer to that is rarely ever no.
– Claies
Nov 17 at 15:06












I was mainly wondering if the Discord bot API allows for it.
– Jacob
Nov 17 at 15:08




I was mainly wondering if the Discord bot API allows for it.
– Jacob
Nov 17 at 15:08












Yes, of course it does, there are at least 3 or 4 ways to do this. you could listen for the send event or listen for the raw stream events, as examples. discordpy.readthedocs.io/en/latest/api.html#discord.on_message.
– Claies
Nov 17 at 15:16




Yes, of course it does, there are at least 3 or 4 ways to do this. you could listen for the send event or listen for the raw stream events, as examples. discordpy.readthedocs.io/en/latest/api.html#discord.on_message.
– Claies
Nov 17 at 15:16












1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










If you mean the bot interrupts the message before it's sent to other users that is impossible. Bots are unable to intercept the message before it reaches other users as the bot is considered a user when it comes to messaging receiving. It receives the message the same time the user does.






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });






    Jacob is a new contributor. Be nice, and check out our Code of Conduct.










     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53352232%2fis-it-possible-to-pause-a-message-from-being-sent-to-check-it%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote



    accepted










    If you mean the bot interrupts the message before it's sent to other users that is impossible. Bots are unable to intercept the message before it reaches other users as the bot is considered a user when it comes to messaging receiving. It receives the message the same time the user does.






    share|improve this answer

























      up vote
      0
      down vote



      accepted










      If you mean the bot interrupts the message before it's sent to other users that is impossible. Bots are unable to intercept the message before it reaches other users as the bot is considered a user when it comes to messaging receiving. It receives the message the same time the user does.






      share|improve this answer























        up vote
        0
        down vote



        accepted







        up vote
        0
        down vote



        accepted






        If you mean the bot interrupts the message before it's sent to other users that is impossible. Bots are unable to intercept the message before it reaches other users as the bot is considered a user when it comes to messaging receiving. It receives the message the same time the user does.






        share|improve this answer












        If you mean the bot interrupts the message before it's sent to other users that is impossible. Bots are unable to intercept the message before it reaches other users as the bot is considered a user when it comes to messaging receiving. It receives the message the same time the user does.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered yesterday









        ethamitc

        487




        487






















            Jacob is a new contributor. Be nice, and check out our Code of Conduct.










             

            draft saved


            draft discarded


















            Jacob is a new contributor. Be nice, and check out our Code of Conduct.













            Jacob is a new contributor. Be nice, and check out our Code of Conduct.












            Jacob is a new contributor. Be nice, and check out our Code of Conduct.















             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53352232%2fis-it-possible-to-pause-a-message-from-being-sent-to-check-it%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Costa Masnaga

            Fotorealismo

            Sidney Franklin