mandar1jn
mandar1jn
Explore posts from servers
CDCloudflare Developers
Created by mandar1jn on 4/5/2024 in #workers-help
Any way to run code once on deploy?
I'm currently developing a discord bot that, due to only needing to handle slash commands, will run on a cloudflare worker. Is there a way to run a part of the worker only once right after deployment? I need that to update the commands on discords end. I can do it in the github deployment, but since I can't get node to allow directory imports and imports without ".js"at the end (using typescript), I would prefer a cloudflare-native approach
4 replies
DIAdiscord.js - Imagine an app
Created by mandar1jn on 10/21/2023 in #djs-questions
get previous command arguments after clicking button
I have a command which gathers some data from a github PR. I'm trying to add an update button. The button interaction returns a message which has a interaction component, but it does not have the options field so I can't get the previous user arguments
8 replies
RRailway
Created by mandar1jn on 6/5/2023 in #✋|help
Timezone?
What timezone are railway's systems in?
7 replies