Comments (3)
Are you sure that you are using v13?
Your code would be working then
But in v14 it wont
from discord.js.
Cannot reproduce with your code sample on 13.16.0 (reported version):
const settings = {
name: "dawda",
eventType: "MESSAGE_SEND",
triggerType: "SPAM",
enabled: true,
actions: [{ type: "SEND_ALERT_MESSAGE", metadata: { channel } }, { type: "BLOCK_MESSAGE" }],
};
await channel?.guild.autoModerationRules.create(settings);
from discord.js.
Now it's working idk why but then I'm sure I used v13
from discord.js.
Related Issues (20)
- Discord API REST response body access HOT 1
- `setDMPermission` and `setDefaultMemberPermissions` do not exist on type 'SlashCommandOptionsOnlyBuilder' HOT 1
- Slash command builder type incompatibility HOT 4
- Poll not being created on slash command interaction HOT 4
- `ActionRowBuilder<T>` does not seem to enforce the type of the components to be `T` HOT 1
- Include which users answered what on the finished polls on the payload HOT 2
- Cannot use module due to version upgrading HOT 2
- Ban Appeal
- addChoices in RoleSelectMenuBuilder or in addRoleOption (SlashCommandRoleOption) HOT 1
- Redis ReplyError when pulling with xreadgroup on empty subscribed events HOT 2
- Add `reason` to follow announcement channel endpoint
- Have event handler callbacks support both async/sync methods HOT 3
- No definition found for the 'commands' property HOT 1
- Ambiguous event names: LinkTags and Anchors
- Only messages are allowed to create polls HOT 1
- Merged interfaces from package overview 404.
- Inaccurate typings for GuildMember#partial
- `Message#fetchReference()` returns a non-message on certain message types
- @discordjs/voice not working with Bun HOT 1
- fix MessagePayload.js to send voice message
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord.js.