Marawan
Marawan
Explore posts from servers
SIASapphire - Imagine a Framework
Created by Marawan on 4/25/2025 in #sapphire-support
Api not running
fuck, shapphire is perfect lmao
43 replies
SIASapphire - Imagine a Framework
Created by Marawan on 4/25/2025 in #sapphire-support
Api not running
thank you so much
43 replies
SIASapphire - Imagine a Framework
Created by Marawan on 4/25/2025 in #sapphire-support
Api not running
yeah i get it
43 replies
SIASapphire - Imagine a Framework
Created by Marawan on 4/25/2025 in #sapphire-support
Api not running
ohh
43 replies
SIASapphire - Imagine a Framework
Created by Marawan on 4/25/2025 in #sapphire-support
Api not running
because prefix is /
43 replies
SIASapphire - Imagine a Framework
Created by Marawan on 4/25/2025 in #sapphire-support
Api not running
now the route should be /me? right?
43 replies
SIASapphire - Imagine a Framework
Created by Marawan on 4/25/2025 in #sapphire-support
Api not running
yeah ur right, its now working
43 replies
SIASapphire - Imagine a Framework
Created by Marawan on 4/25/2025 in #sapphire-support
Api not running
lmao
43 replies
SIASapphire - Imagine a Framework
Created by Marawan on 4/25/2025 in #sapphire-support
Api not running
it was false
43 replies
SIASapphire - Imagine a Framework
Created by Marawan on 4/25/2025 in #sapphire-support
Api not running
now the routes not working omfg
43 replies
SIASapphire - Imagine a Framework
Created by Marawan on 4/25/2025 in #sapphire-support
Api not running
idk if this related but it now saying {"ok":true}
43 replies
SIASapphire - Imagine a Framework
Created by Marawan on 4/25/2025 in #sapphire-support
Api not running
this bitch
43 replies
SIASapphire - Imagine a Framework
Created by Marawan on 4/25/2025 in #sapphire-support
Api not running
import { ApplyOptions } from '@sapphire/decorators';
import { Events, Listener } from '@sapphire/framework';

@ApplyOptions<Listener.Options>({ once: true, event: Events.ShardReady })
export class UserShardEvent extends Listener<typeof Events.ShardReady> {
public async run(id: number, _unavailableGuilds: Set<string> | undefined) {
if (id === 0) {
await this.container.server.connect();
}
}
}
import { ApplyOptions } from '@sapphire/decorators';
import { Events, Listener } from '@sapphire/framework';

@ApplyOptions<Listener.Options>({ once: true, event: Events.ShardReady })
export class UserShardEvent extends Listener<typeof Events.ShardReady> {
public async run(id: number, _unavailableGuilds: Set<string> | undefined) {
if (id === 0) {
await this.container.server.connect();
}
}
}
43 replies
SIASapphire - Imagine a Framework
Created by Marawan on 4/25/2025 in #sapphire-support
Api not running
i got it
43 replies
SIASapphire - Imagine a Framework
Created by Marawan on 4/25/2025 in #sapphire-support
Api not running
YO
43 replies
SIASapphire - Imagine a Framework
Created by Marawan on 4/25/2025 in #sapphire-support
Api not running
the funny thing is
if (client.server) {
client.logger.info(`API server is running on http://localhost:${client.options.api?.listenOptions?.port || 3000}/api/`);
} else {
client.logger.warn('API server is not running');
}
if (client.server) {
client.logger.info(`API server is running on http://localhost:${client.options.api?.listenOptions?.port || 3000}/api/`);
} else {
client.logger.warn('API server is not running');
}
actually works. and it saying 2025-04-25 20:28:43 - INFO - API server is running on http://localhost:3000/api/
43 replies
SIASapphire - Imagine a Framework
Created by Marawan on 4/25/2025 in #sapphire-support
Api not running
api: {
prefix: '/',
origin: 'http://127.0.0.1:3000',
automaticallyConnect: false,
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
}
}
api: {
prefix: '/',
origin: 'http://127.0.0.1:3000',
automaticallyConnect: false,
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
}
}
43 replies
SIASapphire - Imagine a Framework
Created by Marawan on 4/25/2025 in #sapphire-support
Api not running
same issue
43 replies
SIASapphire - Imagine a Framework
Created by Marawan on 4/25/2025 in #sapphire-support
Api not running
tyt
43 replies
SIASapphire - Imagine a Framework
Created by Marawan on 4/25/2025 in #sapphire-support
Api not running
that's weird
43 replies