Use this app to interact with the Discord API using a bot in your account
Emit new event for each message posted to one or more channels
Emit new event for each forum thread message posted. Note that your bot must have the MESSAGE_CONTENT
privilege intent to see the message content. See the documentation.
Emit new event for every member added to a guild. See docs here
Emit new event when a new tag is added to a thread
Attempts to cancel all open orders. A response will be provided for each order that is attempted to be cancelled. If an order is no longer cancelable, the server reject the request, See the docs
Assign a role to a user. Remember that your bot requires the MANAGE_ROLES
permission. See the docs here
Attempts to cancel an open order. If the order is no longer cancelable (example: status=filled
), the server will reject the request, See the docs
Closes (liquidates) all of the account’s open long and short positions. A response will be provided for each order that is attempted to be cancelled. If an order is no longer cancelable, the server will reject the request, See the docs
The Discord Bot API unlocks the power to interact with Discord users and channels programmatically, making it possible to automate messages, manage servers, and integrate with other services. With Pipedream's serverless platform, you can create complex workflows that respond to events in Discord, process data, and trigger actions in other apps. This opens up opportunities for community engagement, content moderation, analytics, and more, without the overhead of managing infrastructure.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
discord_bot: {
type: "app",
app: "discord_bot",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://discord.com/api/users/@me`,
headers: {
"Authorization": `Bot ${this.discord_bot.$auth.bot_token}`,
},
})
},
})
Alpaca API allows you to harness the power of automated trading by providing an interface to manage your stock and equity portfolio through simple API calls. It's particularly suited for building trading bots, algorithmic trading strategies, or just automating interactions with your investment portfolio. Whether you're looking to place trades based on specific market conditions, automatically adjust your portfolio in response to certain triggers, or simply streamline your investment activities, Alpaca's trading API offers a robust solution.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
alpaca: {
type: "app",
app: "alpaca",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.alpaca.markets/v2/account`,
headers: {
Authorization: `Bearer ${this.alpaca.$auth.oauth_access_token}`,
},
})
},
})