sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Automod System
Automod System
How do you handle incompatible null/undefined from discord.js typings?
discord.js uses a mix of null/undefined and sometimes it gets really frustrating. For example this is a very common occurence in my codebase :
```ts
new EmbedBuilder()...Categories cannot have subcategories api error
DiscordAPIError[50035]: Invalid Form Body
parent_id[CHANNEL_PARENT_INVALID_PARENT]: Categories cannot have subcategories
DiscordAPIError[50035]: Invalid Form Body
parent_id[CHANNEL_PARENT_INVALID_PARENT]: Categories cannot have subcategories
cant receive dm messages from the 'messageCreate' event even after enabling the channel partial

modmail system
Issues implementing subcommands
When to shard?
Cant resolve zlib-sync
Creating TypeSafe event emitter wrapper function
EventTypes.ts:
```ts
import type { GuildBan, GuildMember } from 'discord.js';
import type { BanExportOptions, BanImportOptions } from './typeDefs';...MongoDb
"Failed to find guild, or unknown type for channel" even when not using channel.add()
channel.add() function from discordjs
https://github.com/discordjs/discord.js/blob/7ec0bd93b0d7788e8ccf5576add37f7198be3f72/src/managers/ChannelManager.js#L33I searched my code, but couldn't find any usage of this, and I'm wondering, where is Issue is coming from. The image also looks like, some ID was stored as a js number and got trimmed....

Potential mass api usage issues
Handling Component Interaction to Modal interaction to Component interaction to Modal interaction
Message Collector Error
m.content and sets it to username, which I can log into the console just fine - I receive the following error preventing further code run. Also getting a shit ton of type errors.
OG Code
```ts...Nickname

TypeScript ModMail
Error: Cannot properly serialize component type: