Giter VIP home page Giter VIP logo

Comments (4)

krazykoder avatar krazykoder commented on May 22, 2024

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.

fieu avatar fieu commented on May 22, 2024

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.

krazykoder avatar krazykoder commented on May 22, 2024

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.

fieu avatar fieu commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.