Trusted by 250,000+ developers from startups to Fortune 500 companies:
This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.
To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.
New Guild Member (Instant) on Discord
Description:Emit new event for each new member added to a guild
Version:0.0.1
Key:discord-guild-member
import discord from "../../discord.app.mjs";
export default {
key: "discord-guild-member",
name: "New Guild Member (Instant)",
description: "Emit new event for each new member added to a guild",
version: "0.0.1",
dedupe: "unique",
type: "source",
props: {
discord,
discordApphook: {
type: "$.interface.apphook",
appProp: "discord",
eventNames: [
"GUILD_MEMBER_ADD",
],
},
},
async run(event) {
this.$emit(event, {
id: `${event.userId}${event.guildId}`,
summary: `Member ${event.displayName} added`,
ts: Date.now(),
});
},
};
This component may be configured based on the props
defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
Label | Prop | Type | Description |
---|
Discord | discord | app | This component uses the Discord app. |
| discordApphook | $.interface.apphook | |
Discord uses OAuth authentication. When you connect your Discord account, Pipedream will open a popup window where you can sign into Discord and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Discord API.
Pipedream requests the following authorization scopes when you connect your account:
bot
email
identify
guilds
Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.