tropic
tropic
Explore posts from servers
SIASapphire - Imagine a framework
Created by tropic on 3/11/2023 in #sapphire-support
Hey what is DEVELOPMENT MODE and how do I disable it
ty
7 replies
SIASapphire - Imagine a framework
Created by tropic on 3/11/2023 in #sapphire-support
Hey what is DEVELOPMENT MODE and how do I disable it
I seee hmmm
7 replies
SIASapphire - Imagine a framework
Created by tropic on 3/11/2023 in #sapphire-support
Hey what is DEVELOPMENT MODE and how do I disable it
7 replies
SIASapphire - Imagine a framework
Created by tropic on 3/8/2023 in #sapphire-support
Unable to get member data from users that have left / kicked
thank you
12 replies
SIASapphire - Imagine a framework
Created by tropic on 3/8/2023 in #sapphire-support
Unable to get member data from users that have left / kicked
I did not even notice I had the guild parameter there
12 replies
SIASapphire - Imagine a framework
Created by tropic on 3/8/2023 in #sapphire-support
Unable to get member data from users that have left / kicked
12 replies
SIASapphire - Imagine a framework
Created by tropic on 3/8/2023 in #sapphire-support
Unable to get member data from users that have left / kicked
/listeners/events/member.js" TypeError: Cannot read properties of undefined (reading 'partial')
12 replies
SIASapphire - Imagine a framework
Created by tropic on 3/8/2023 in #sapphire-support
Unable to get member data from users that have left / kicked
Sadly this did not work,
index.ts
export const client = new SapphireClient({
defaultPrefix: '!',
regexPrefix: /^(hey +)?bot[,! ]/i,
caseInsensitiveCommands: true,
logger: {
level: LogLevel.Debug
},
shards: 'auto',
intents: [
GatewayIntentBits.DirectMessageReactions,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.GuildBans,
GatewayIntentBits.GuildEmojisAndStickers,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.MessageContent
],
partials: [Partials.Channel, Partials.GuildMember, Partials.Message, Partials.Reaction, Partials.User],
loadMessageCommandListeners: true
});
index.ts
export const client = new SapphireClient({
defaultPrefix: '!',
regexPrefix: /^(hey +)?bot[,! ]/i,
caseInsensitiveCommands: true,
logger: {
level: LogLevel.Debug
},
shards: 'auto',
intents: [
GatewayIntentBits.DirectMessageReactions,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.GuildBans,
GatewayIntentBits.GuildEmojisAndStickers,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.MessageContent
],
partials: [Partials.Channel, Partials.GuildMember, Partials.Message, Partials.Reaction, Partials.User],
loadMessageCommandListeners: true
});
event.ts
@ApplyOptions<Listener.Options>({ event: Events.GuildMemberRemove, name: 'Handle Guild Member Kick/Leave' })
export class MemberRemove extends Listener {
public async run(guild: Guild, member: GuildMember) {
if (member.partial) {
const memberPartial = await member.fetch();
console.log(memberPartial.id)
}
}
}
event.ts
@ApplyOptions<Listener.Options>({ event: Events.GuildMemberRemove, name: 'Handle Guild Member Kick/Leave' })
export class MemberRemove extends Listener {
public async run(guild: Guild, member: GuildMember) {
if (member.partial) {
const memberPartial = await member.fetch();
console.log(memberPartial.id)
}
}
}
I also tried to pass in the PartialGuildMember Type, PartialUser Type and User Type to the event listener it self
12 replies
SIASapphire - Imagine a framework
Created by tropic on 3/8/2023 in #sapphire-support
Unable to get member data from users that have left / kicked
Thank you also I def didn’t get timed out for calling my self dumb 😂
12 replies
SIASapphire - Imagine a framework
Created by tropic on 3/8/2023 in #sapphire-support
Unable to get member data from users that have left / kicked
12 replies
SIASapphire - Imagine a framework
Created by tropic on 1/19/2023 in #sapphire-support
Hi I am getting a permissions error when trying to run docker-compose up
ahm
27 replies
SIASapphire - Imagine a framework
Created by tropic on 1/19/2023 in #sapphire-support
Hi I am getting a permissions error when trying to run docker-compose up
just a heads up though, keep up the good work everyone I really like Sapphire 👌
27 replies
SIASapphire - Imagine a framework
Created by tropic on 1/19/2023 in #sapphire-support
Hi I am getting a permissions error when trying to run docker-compose up
nothing else so I'm not sure if its because we had different setups why the default file from sapphire template did not work
27 replies
SIASapphire - Imagine a framework
Created by tropic on 1/19/2023 in #sapphire-support
Hi I am getting a permissions error when trying to run docker-compose up
I did use just the stock docker install and did the whole add my user to the docker group thing
27 replies
SIASapphire - Imagine a framework
Created by tropic on 1/19/2023 in #sapphire-support
Hi I am getting a permissions error when trying to run docker-compose up
sorry for reviving this but just realized I did not provide an update, so i did try this and it started but i was getting permission errors on the build dir instead. I removed the user NODE lines from docker file and I have had no permission issues since then
27 replies
SIASapphire - Imagine a framework
Created by tropic on 1/19/2023 in #sapphire-support
Hi I am getting a permissions error when trying to run docker-compose up
Thank you I will be trying this today, I have been travelling for the past couple of days and I'm finally able to sit down
27 replies
SIASapphire - Imagine a framework
Created by tropic on 1/19/2023 in #sapphire-support
Hi I am getting a permissions error when trying to run docker-compose up
Nopr
27 replies
SIASapphire - Imagine a framework
Created by tropic on 1/19/2023 in #sapphire-support
Hi I am getting a permissions error when trying to run docker-compose up
pepeCry
27 replies
SIASapphire - Imagine a framework
Created by tropic on 1/19/2023 in #sapphire-support
Hi I am getting a permissions error when trying to run docker-compose up
I havent even tried prod
27 replies
SIASapphire - Imagine a framework
Created by tropic on 1/19/2023 in #sapphire-support
Hi I am getting a permissions error when trying to run docker-compose up
Development
27 replies