chpsterz
chpsterz
SIASapphire - Imagine a framework
Created by chpsterz on 2/19/2023 in #sapphire-support
How to edit an Embed(Documentation isn't working)
C:\Users\paaxy\Documents\sploop-bot-entry-detection'\sploop-bot-entry-detection\dist\index.js:79
return message.edit({ embeds: [playerCountEmbed()] });
^

TypeError: message.edit is not a function
at Timeout._onTimeout (C:\Users\paaxy\Documents\sploop-bot-entry-detection'\sploop-bot-entry-detection\dist\index.js:79:32)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7)

Node.js v18.14.0
C:\Users\paaxy\Documents\sploop-bot-entry-detection'\sploop-bot-entry-detection\dist\index.js:79
return message.edit({ embeds: [playerCountEmbed()] });
^

TypeError: message.edit is not a function
at Timeout._onTimeout (C:\Users\paaxy\Documents\sploop-bot-entry-detection'\sploop-bot-entry-detection\dist\index.js:79:32)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7)

Node.js v18.14.0
15 replies
SIASapphire - Imagine a framework
Created by chpsterz on 2/19/2023 in #sapphire-support
How to edit an Embed(Documentation isn't working)
this isn't flagged in the code but during run time
15 replies
SIASapphire - Imagine a framework
Created by chpsterz on 2/19/2023 in #sapphire-support
How to edit an Embed(Documentation isn't working)
k that fixes the sending issue
15 replies
SIASapphire - Imagine a framework
Created by chpsterz on 2/19/2023 in #sapphire-support
How to edit an Embed(Documentation isn't working)
15 replies
SIASapphire - Imagine a framework
Created by chpsterz on 2/19/2023 in #sapphire-support
How to edit an Embed(Documentation isn't working)
15 replies
SIASapphire - Imagine a framework
Created by chpsterz on 2/19/2023 in #sapphire-support
How to edit an Embed(Documentation isn't working)
now I have the same error as before
15 replies
SIASapphire - Imagine a framework
Created by chpsterz on 2/19/2023 in #sapphire-support
How to edit an Embed(Documentation isn't working)
Yes I am aware that my code doesn't follow the structure mentioned here https://discord.com/channels/737141877803057244/1076513439524077598/1076552454147145879, I have not bothered to change that yet and I believe that is not related to the bug at hand as far as I know?
15 replies
SIASapphire - Imagine a framework
Created by chpsterz on 2/18/2023 in #sapphire-support
"Send" does not exist on type "channel"
Solution(For Future People trying to solve this issue)
const channel = await client.channels.fetch("1076251641625456700");
if(channel?.isTextBased() ) {
channel.send("Hello World!")
}
const channel = await client.channels.fetch("1076251641625456700");
if(channel?.isTextBased() ) {
channel.send("Hello World!")
}
Fetch the channel, make sure it is text based.
38 replies
SIASapphire - Imagine a framework
Created by chpsterz on 2/18/2023 in #sapphire-support
"Send" does not exist on type "channel"
thank you very much.
38 replies
SIASapphire - Imagine a framework
Created by chpsterz on 2/18/2023 in #sapphire-support
"Send" does not exist on type "channel"
alrighty
38 replies
SIASapphire - Imagine a framework
Created by chpsterz on 2/18/2023 in #sapphire-support
"Send" does not exist on type "channel"
yes that worked
38 replies
SIASapphire - Imagine a framework
Created by chpsterz on 2/18/2023 in #sapphire-support
"Send" does not exist on type "channel"
and make it send a message?
38 replies
SIASapphire - Imagine a framework
Created by chpsterz on 2/18/2023 in #sapphire-support
"Send" does not exist on type "channel"
so how do I make it not undefined
38 replies
SIASapphire - Imagine a framework
Created by chpsterz on 2/18/2023 in #sapphire-support
"Send" does not exist on type "channel"
yes
38 replies
SIASapphire - Imagine a framework
Created by chpsterz on 2/18/2023 in #sapphire-support
"Send" does not exist on type "channel"
38 replies
SIASapphire - Imagine a framework
Created by chpsterz on 2/18/2023 in #sapphire-support
"Send" does not exist on type "channel"
38 replies
SIASapphire - Imagine a framework
Created by chpsterz on 2/18/2023 in #sapphire-support
"Send" does not exist on type "channel"
it is
38 replies
SIASapphire - Imagine a framework
Created by chpsterz on 2/12/2023 in #sapphire-support
How to defer reply with Sapphirejs
Alrighty, thank you.
5 replies