Comments (4)
Hello @ChaoticWeg,
I have been using this handy utility.
When I use --color
flag with text and files together I am getting
fatal: files must be sent on their own
Did you finally patch a solution to this one - seems like you also had some similar error.
from discord.sh.
Hey @krazykoder,
Can you post the command you ran as well as the files in question? I will try and replicate it on my end.
from discord.sh.
This will throw the error. However try it without --color "0xFFFFFF" \
and it will work fine.
$HOME/.local/bin/discord.sh \
--webhook-url=$WEBHOOK_URL \
--color "0xFFFFFF" \
--text "Daily Monitor $HOSTNAME \n$(date)\n" \
--file $HOME/Pictures/mouse.jpg \
--username $HOSTNAME
fatal: files must be sent on their own (i.e. without text or embeds)
from discord.sh.
Ah right, well as it says in the error message, you cannot send files and embeds in one go.
The reason it works without --color
is because that is a flag for the embed (which we can't use when using --file
as well)
Going to fix the error to make it more clear. Can finally close this issue as well.
from discord.sh.
Related Issues (20)
- text under the --image ? HOT 6
- --text="xxx" doesn't work with newlines HOT 3
- Data Input factor on shell script HOT 5
- fatal: curl failed with code 3 HOT 8
- Problems to use discord.sh behind a proxy squid version 3.5
- ability to send mutiple embeds HOT 1
- in case embeds: timestamp not shown HOT 1
- Sending a bash string as description results in invalid JSON error HOT 1
- date: illegal option on FreeBSD HOT 2
- [Meta] Add CNAME record to redirect discord.sh domain name to this Github repo HOT 3
- bash should be added as a dependency, for now HOT 3
- Problems with --color HOT 1
- Adding components option (buttons) HOT 2
- Modify a webhook HOT 6
- Mention role in message HOT 1
- Create thread message HOT 6
- Webhookurl | fatal: curl failed with code 7 HOT 3
- [Suggestion] Minified version HOT 1
- [Improvment] Add fields for embeds HOT 1
- Include version number as comment in header HOT 2
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.sh.