Back to APIs list

Discord API examples & templates

Use these vals as a playground to view and fork Discord API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
ir1d avatar
ir1d
tldraw_computer_example
HTTP
Forked from steveruizok/tldraw_computer_example
0
sparker avatar
sparker
tldraw_computer_example
HTTP
Forked from steveruizok/tldraw_computer_example
0
stevekrouse avatar
stevekrouse
docFeedbackForm
HTTP
Forked from stevekrouse/form
1
ericlee4 avatar
ericlee4
eclipseStreamData
HTTP
List of Risk of Rain 2 eclipse streamers Data updated every 15 minutes viewerCount is the highest viewer count detected for the last stream Detects the tags "Eclipse" and "E8" in the title and tags (case insensitive)
1
chini5ko avatar
chini5ko
tldraw_computer_example
HTTP
Forked from steveruizok/tldraw_computer_example
0
ni5k0 avatar
ni5k0
tldraw_computer_example
HTTP
Forked from steveruizok/tldraw_computer_example
0
timlin avatar
timlin
docFeedbackForm
HTTP
Forked from stevekrouse/docFeedbackForm
0
janpaul123 avatar
janpaul123
compareEmbeddings
Script
An interactive, runnable TypeScript val by janpaul123
0
samwho avatar
samwho
twitterAlert
Cron
Forked from stevekrouse/twitterAlert
0
parkerdavis avatar
parkerdavis
docFeedbackForm
HTTP
Forked from stevekrouse/docFeedbackForm
0
ejfox avatar
ejfox
inventory
HTTP
* This val creates an interactive tech stack wizard that generates a video game-style inventory screen. * It uses React for the UI, leverages emoji and Unicode symbols for a visually rich experience, and * incorporates Tailwind CSS for elegant, grayscale styling. * The wizard allows users to select tools, libraries, and APIs, then displays them in a shareable format.
0
neverstew avatar
neverstew
inTheBackgroundExample
HTTP
inTheBackground With the addition of the "early return" feature of web handlers, you can now process short background tasks in vals. This can be really useful for occasions where an immediate response is required, with a subsequent update a few seconds later e.g. a Discord bot that calls ChatGPT needs to respond within a few seconds, which can be too fast for the AI to generate a response. We can instead reply immediately and then update that message later, inTheBackground Simply wrap something in inTheBackground and it will do just that! In this example, we log something a few seconds later than the web response is sent back.
1
maxm avatar
maxm
discordSignatureVerifyExample
HTTP
// Your public key can be found on your application in the Developer Portal
1
janpaul123 avatar
janpaul123
blogPostEmbeddingsDimensionalityReduction
Script
Forked from janpaul123/compareEmbeddings
0
stevekrouse avatar
stevekrouse
ideas
HTTP
Request for vals Here's my personal list of things I want to see on Val Town. I may build them myself at some point, but to the glory goes the person who builds it first. If you want to collaborate or get clarification on any of these ideas, please drop me a comment or reach out on discord. Status Page Possibly the singular most popular thing to do on Val Town is to build a downtime detector for your website. This one from @healeycodes is super popular as well as this fork by @andreterron . Sites like cronitor do this and also seamlessly provide a status page as well, for example like this one: https://status.val.town/. It would be awesome if we built a fork of these downtime detectors that also stored historical uptime/downtime (and possibly latency) information in sqlite, and then provided an http interface to view the data as well. Free Stock API Proxy I have been working on a stock price api tool, initially for use within Google Sheets: https://www.val.town/v/stevekrouse/stockPrice It would be awesome to expand this to also be useful to other folks, ie folks within Val Town. For example, it could be used to build stock price trackers. Our BTC price tracker is pretty popular. I think one for stocks would be similarly popular, but it'd need someone to provide a good free stock API. Maybe one exists or maybe we need to proxy it.
0
liamdanielduffy avatar
liamdanielduffy
REACT_TODO_LIST_CONTENTS
Script
// https://api.val.town/v1/express/liamdanielduffy.reactTodoListWebsite
1
โ€ฆ
11
โ€ฆ
Next