MajorAmari
MajorAmari
Explore posts from servers
DDeno
Created by MajorAmari on 1/11/2025 in #help
Why are both denols and tsserver attaching to the same TypeScript project in Neovim?
I explained everything in this stackoverflow question: https://stackoverflow.com/staging-ground/79347839
1 replies
DIdiscord.js - Imagine ❄
Created by MajorAmari on 11/11/2023 in #djs-questions
Fetch data from the "new" members menu
No description
4 replies
DTDrizzle Team
Created by MajorAmari on 9/19/2023 in #help
Unexpected identifier 'TABLE'
I used drizzle-kit generate:pg to generate this schema
CREATE TABLE IF NOT EXISTS users (
user_id INT PRIMARY KEY,
username VARCHAR(255),
email VARCHAR(255)
);
CREATE TABLE IF NOT EXISTS users (
user_id INT PRIMARY KEY,
username VARCHAR(255),
email VARCHAR(255)
);
I tried to use drizzle-kit push:pg but I get this error
CREATE TABLE IF NOT EXISTS "users" (
^^^^^

SyntaxError: Unexpected identifier 'TABLE'
CREATE TABLE IF NOT EXISTS "users" (
^^^^^

SyntaxError: Unexpected identifier 'TABLE'
8 replies
DIdiscord.js - Imagine ❄
Created by MajorAmari on 9/13/2023 in #djs-questions
Slash command and message command handler complained
Hello, My brain is empty and I want to make a Slash command along with normal message handler with the point of the handler is to make it easier to add more commands and I want the argus to be type safe because I'm using typescript, if you have any suggestion for good code structure I'm willing to hear :)
9 replies
DDeno
Created by MajorAmari on 6/11/2023 in #help
how to specify giving error or warning for a lint rule?
I'm new to Deno couldn't find a way to make a lint rule give error instead of error
{
"lint": {
"include": [],
"exclude": [],
"rules": {
"tags": [
"recommended"
],
"include": [
"eqeqeq" // <-- Here for example it give warning in vscode
],
"exclude": [
"import-prefix-missing"
]
}
}
}
{
"lint": {
"include": [],
"exclude": [],
"rules": {
"tags": [
"recommended"
],
"include": [
"eqeqeq" // <-- Here for example it give warning in vscode
],
"exclude": [
"import-prefix-missing"
]
}
}
}
5 replies