mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
refactor: removed code and split options (#5918)
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com> BREAKING CHANGE: Removed `APIMessage#split` BREAKING CHANGE: Removed `MessageEditOptions#code` BREAKING CHANGE: Removed `BaseMessageOptions#code` BREAKING CHANGE: Removed `BaseMessageOptions#split`
This commit is contained in:
@@ -27,9 +27,8 @@ client.on('messageReactionRemoveAll', async message => {
|
||||
console.log(`messageReactionRemoveAll - content: ${message.content}`);
|
||||
});
|
||||
|
||||
// These are to check that stuff is the right type
|
||||
// This is to check that stuff is the right type
|
||||
declare const assertIsMessage: (m: Promise<Message>) => void;
|
||||
declare const assertIsMessageArray: (m: Promise<Message[]>) => void;
|
||||
|
||||
client.on('message', ({ channel }) => {
|
||||
assertIsMessage(channel.send('string'));
|
||||
@@ -42,8 +41,6 @@ client.on('message', ({ channel }) => {
|
||||
assertIsMessage(channel.send({ embeds: [embed] }));
|
||||
assertIsMessage(channel.send({ embeds: [embed], files: [attachment] }));
|
||||
|
||||
assertIsMessageArray(channel.send({ split: true }));
|
||||
|
||||
// @ts-expect-error
|
||||
channel.send();
|
||||
// @ts-expect-error
|
||||
|
||||
Reference in New Issue
Block a user