Kay
Explore posts from serversDIAdiscord.js - Imagine an app
•Created by Kay on 6/29/2024 in #djs-questions
Cannot use 'in' operator to search for 'code' in undefined
When running my bot it sometimes returns this error and exists
I am running the bot in a deno docker container.
Bot code:
4 replies
Check if class instance is instance of provided type
I have a function that dynamically loads a folder with ts files, initiates the classes in them and saves them. The function takes in a type for its return type like this
load<T extends BaseInteraction>
. But when i use DynamicClass instanceof T
it says 'T' only refers to a type, but is being used as a value here.
. is there a way to compare the class to the provided class?3 replies
DIAdiscord.js - Imagine an app
•Created by Kay on 5/22/2024 in #djs-questions
Invalid protocol value
getting this error
i tried resetting my token and removing the intents and that didnt fix it
2 replies
CDCloudflare Developers
•Created by Kay on 5/12/2024 in #general-help
Redirect with path
How would i create a redirect url that woudl for example redirect
example.domain.com
to example.com
but includes the path so if its example.domain.com/path-thingy
it would redirect to example.com/path-thingy
2 replies
Deno deploy running my code multiple times
Im hosting a small discord bot on deno deploy but for some reason its firing the events multiple times and everytime i save the project to shut it down and start it again it doubles. so in this case when i delete a message it first send one message telling me its deleted. then when i patched a bug it became 2 messages and now its 4. is there a way to fix this?
4 replies
Bundle ts code to ts using deno emit
When bundling code using https://deno.land/x/[email protected] it bundles into javascript but i want it to be typescript. is it possible to do this?
2 replies
Get image from automated download
I have this page which displays a render using threejs and renders it into a png and downloads it. i need that image to use it in a canvas from deno-canvas but when i download it using this package it returns this:
code where i download it:|
32 replies
Get image data from automated download
I have this page which displays a render using threejs and renders it into a png and downloads it. i need that image to use it in a canvas from deno-canvas but when i download it using this package it returns this
'C:\Users\titul\AppData\Local\Temp\deno_dwldf3d5cf300f407d23/E:\Arcunis\recipeImageMaker\stone.png'
code where i download it:|
2 replies
CDCloudflare Developers
•Created by Kay on 2/28/2024 in #general-help
Redirect to ip
i need a subdomain to redirect to an ip. is this possible and how?
15 replies
CDCloudflare Developers
•Created by Kay on 2/9/2024 in #general-help
Responding to emails in gmail using my email from cloudflare
i made a support email using my cloudflare domain and i managed to be able to recieve and send emails using that email adress from gmail but i dont seem to be able to respond to emails with that email. is there a way and if so how?
13 replies
Deno.serve get full path instead of only params and url
I need to get params from an url like this
http://localhost:8000/auth#token_type=Bearer&access_token=CENCORED&expires_in=604800&scope=identify
but the params arnt after a ? but after a # so how do i get that using deno.serve?5 replies
DIAdiscord.js - Imagine an app
•Created by Kay on 12/21/2023 in #djs-questions
Cannot get params from url
@space ❄ (tagging u cous this is followup of my previous question which i closed and cant open anymore)
so this is my code:
but this just logs
null null
this is the oauth2 url from discord https://discord.com/oauth2/authorize?client_id=1116352238667960392&response_type=token&redirect_uri=http%3A%2F%2Flocalhost%3A8000%2Fauth&scope=identify
7 replies