https://discord.cloudflare.com logo
Join Discord
Powered by
# workers-discussions
  • m

    Matt

    01/15/2021, 4:16 PM
    I'm returning too many embeds for a single response
  • g

    Greg Brimble | Cloudflare Pages

    01/15/2021, 4:16 PM
    Ah, gotcha
  • m

    Matt

    01/15/2021, 4:16 PM
    https://github.com/MattIPv4/DNS-over-Discord/blob/773f3064b39ac68ce685afa29f13126bc08be878/src/utils/dig.js#L57-L69
  • g

    Greg Brimble | Cloudflare Pages

    01/15/2021, 4:17 PM
    Nice! Disgusting. But nice 😉
  • m

    Matt

    01/15/2021, 4:17 PM
  • a

    ai

    01/15/2021, 4:18 PM
  • a

    ai

    01/15/2021, 4:19 PM
    the hell is this
  • a

    ai

    01/15/2021, 4:40 PM
    Can the slash command return messages before the response? Or does that change how the actual response is interpreted?
  • m

    Matt

    01/15/2021, 4:41 PM
    Yeah, you can return messages before you respond. All that happens is that in the Discord client, your messages appear before the 'user used /whatever' message
  • a

    ai

    01/15/2021, 4:42 PM
    Maybe that'd be better in this case? The code would be easier to read and understand and you could easily see who called the bot without having to scroll to the top of the response.
  • a

    ai

    01/15/2021, 4:42 PM
    Just my $0.02
  • m

    Matt

    01/15/2021, 4:43 PM
    Yeah, potentially. It'd just be deciding at what point to send the ack after the messages. For a single record-type response, imo it'd look weird to send the single embed and then the ack
  • m

    Matt

    01/15/2021, 4:43 PM
    Maybe just at 10+ record types, when this logic kicks in
  • a

    advaith

    01/15/2021, 5:23 PM
    hmm
  • a

    advaith

    01/15/2021, 5:23 PM
    has anyone actually tried sending follow-ups before responding
  • m

    Matt

    01/15/2021, 5:27 PM
    Yes
  • m

    Matt

    01/15/2021, 5:27 PM
    I have
  • j

    joe

    01/15/2021, 5:27 PM
    hahahaha @User you are everywhere
  • a

    advaith

    01/15/2021, 5:27 PM
    interesting
  • a

    advaith

    01/15/2021, 5:27 PM
    i wonder if that was intended to work
  • a

    advaith

    01/15/2021, 5:27 PM

    https://advaith.is-in-hyper.space/43d92deac6.pngâ–¾

  • j

    joe

    01/15/2021, 5:27 PM
    huh
  • m

    Matt

    01/15/2021, 5:28 PM
    It certainly feels odd that it works
  • m

    Matt

    01/15/2021, 5:28 PM
    But ¯\_(ツ)_/¯
  • a

    ai

    01/15/2021, 5:29 PM
    feature not a bug :D
  • m

    macedonian

    01/15/2021, 5:34 PM
    Is it safe to fire-and-forget writes to KV from a Worker or do you risk the task being cancelled like when you fire-and-forget a fetch.
  • g

    Greg Brimble | Cloudflare Pages

    01/15/2021, 6:08 PM
    The latter. Can say from experience.
  • g

    Greg Brimble | Cloudflare Pages

    01/15/2021, 6:09 PM
    You should definitely await it, (either with
    waitUntil
    and hope that succeeds, or ideally in your
    respondWith
    )
  • m

    macedonian

    01/15/2021, 6:25 PM
    Thanks!
  • s

    Stan

    01/15/2021, 7:00 PM
    Hello, is there any way to make cloudflare serverless workers work with WebSockets?
1...525354...2509Latest