Marawan
Marawan
Explore posts from servers
SIASapphire - Imagine a Framework
Created by Marawan on 4/25/2025 in #sapphire-support
Api not running
hey!, I am trying to create a api. What i have so far:
const client = new SapphireClient({
defaultPrefix: '!',
caseInsensitiveCommands: true,
logger: {
level: LogLevel.Debug
},
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent
],
loadMessageCommandListeners: true,
api: {
prefix: '/api/',
origin: '*',
automaticallyConnect: true,
auth: {
id: process.env.DISCORD_CLIENT_ID as string,
secret: process.env.DISCORD_CLIENT_SECRET as string,
cookie: 'SAPPHIRE_AUTH',
redirect: process.env.DISCORD_REDIRECT_URI,
scopes: [OAuth2Scopes.Identify, OAuth2Scopes.Guilds],
domainOverwrite: process.env.NODE_ENV === 'development' ? '127.0.0.1' : undefined,
transformers: [transformOauthGuilds]
},
listenOptions: {
port: 3000
}
}
});
const client = new SapphireClient({
defaultPrefix: '!',
caseInsensitiveCommands: true,
logger: {
level: LogLevel.Debug
},
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent
],
loadMessageCommandListeners: true,
api: {
prefix: '/api/',
origin: '*',
automaticallyConnect: true,
auth: {
id: process.env.DISCORD_CLIENT_ID as string,
secret: process.env.DISCORD_CLIENT_SECRET as string,
cookie: 'SAPPHIRE_AUTH',
redirect: process.env.DISCORD_REDIRECT_URI,
scopes: [OAuth2Scopes.Identify, OAuth2Scopes.Guilds],
domainOverwrite: process.env.NODE_ENV === 'development' ? '127.0.0.1' : undefined,
transformers: [transformOauthGuilds]
},
listenOptions: {
port: 3000
}
}
});
and
$schema: "./node_modules/@sapphire/cli/templates/schemas/.sapphirerc.scheme.json"
projectLanguage: "ts"
locations:
base: src
arguments: arguments
commands: commands
listeners: listeners
preconditions: preconditions
interaction-handlers: interaction-handlers
routes: api
customFileTemplates:
enabled: false
location: ""
$schema: "./node_modules/@sapphire/cli/templates/schemas/.sapphirerc.scheme.json"
projectLanguage: "ts"
locations:
base: src
arguments: arguments
commands: commands
listeners: listeners
preconditions: preconditions
interaction-handlers: interaction-handlers
routes: api
customFileTemplates:
enabled: false
location: ""
43 replies
VVALORANT
Created by Marawan on 3/27/2023 in #community-help
download fix
No description
1 replies
VVALORANT
Created by Marawan on 10/21/2022 in #community-help
freezeing
Hey, when i start valorant the game freeze in startup and after 2m its tell me to restart client
2 replies